cupertino-files / InteractionType
Variable: InteractionType
constInteractionType:Readonly<Record<"CHECKBOX"|"STAR_RATING"|"STEPPER"|"SLIDER"|"POPUP_MENU",number>>
Defined in: src/tst/controls.ts:76
TST.CellSpecArchive.interaction_type.
Apple publishes no enum. These names come from documents that lay one widget out per row and state in their own cell values which row is which:
- 8 — checkbox. Its row holds
FALSEandTRUE, and its spec is a loneinteraction_typewith nothing to configure. - 6 — star rating. Bounded
[0…5]step 1 in every instance, with values 0, 3 and 5 in the row beneath. - 5 — slider. One instance is
[1…50]step 0.1, matching a published test that builds exactly that cell as a slider. - 4 — stepper. The remaining range widget; Numbers offers five controls in total and the other four are accounted for.
- 7 — pop-up menu. The only one carrying a chooser popup model.
The 4/5 pairing is the one a file cannot settle — a stepper and a slider store the identical field set, so nothing in a file separates them. The assignment is observed in the app instead: a document authoring one of each was opened in Numbers and both drew as labelled.
Values outside this set are carried through untouched rather than rejected — see controlShape, which classifies by contents.