You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`data` | array | No | [] | array of objects with a unique `key` and `label` to select in the modal. Optional `component` overrides label text.
140
+
`data` | array | No | [] | array of objects with a unique `key` and `label` to select in the modal. Optional `component` overrides label text. Optional unique `testID` for each item.
139
141
`onChange` | function | Yes | () => {} | callback function, when the users has selected an option
140
142
`onModalOpen` | function | Yes | () => {} | callback function, when modal is opening
141
143
`onModalClose` | function | Yes | (item) => {} | callback function, when modal is closing. Returns the selected item.
`selectedKey` | any | Yes | '' | Key of the item to be initially selected
184
186
`enableShortPress` | bool | Yes | true | enables short press. This is regular touch behavior.
185
187
`enableLongPress` | bool | Yes | false | enables long press. When true, `onModalOpen` returns `{longPress: true}`
188
+
`optionsTestIDPrefix` | string | Yes | `'default'` | This prefixes each selectable option's testID prop if no testID keys are provided in `props.data` array objects. Default for each option's testID: 'default-\<optionLabel\>'
0 commit comments