- 
                Notifications
    You must be signed in to change notification settings 
- Fork 67
Properties
        Markus Wind edited this page Dec 12, 2018 
        ·
        7 revisions
      
    The following properties can be passed to the SelectInput.
| Prop | Type | Default | Description | 
|---|---|---|---|
| enabled | PropTypes.bool | true | Wether the picker is enabled or not | 
| mode | PropTypes.string | 'dialog' | Picker mode on Android, 'dialog' or 'dropdown' | 
| value | PropTypes.any | undefined | initial selected value | 
| options | PropTypes.array | [{ value: 0, label: '0'}] | picker options | 
| cancelKeyText | PropTypes.string | 'Cancel' | text of cancel button in buttons bar | 
| submitKeyText | PropTypes.string | 'Done' | text of submit button in buttons bar | 
| style | View#style | undefined | The style of the input's view | 
| labelStyle | Text#style | undefined | Style of the input's label | 
| buttonsTextStyle | Text#style | undefined | The style of the keyboard buttons (cancel/submit) | 
| buttonsViewStyle | View#style | undefined | The style of the keyboard button bar | 
| pickerItemsStyle | Text#style | undefined | The style of the picker items | 
| pickerViewStyle | View#style | undefined | The style of the picker keyboard | 
| onBeginEditing | PropTypes.func | undefined | function that is called when keyboard is opened | 
| onEndEditing | PropTypes.func | undefined | function that is called when input is canceled | 
| onValueChange | PropTypes.func | undefined | function that is called when value is changed | 
| onSubmitEditing | PropTypes.func | undefined | function that is called when input is submitted |