<cla-picker>

The Picker component.

Built using the Ionic Framework Radio / Radio Group for reference.

The cla-picker and cla-picker-group components must be used with each other, with the buttons being nested in the group.

Usage

Properties

PropertyRequiredDescriptionTypeDefault
blockfalseif 'block="true"', 'block' or 'block="block"' (i.e. true) the picker will display as a block (`<cla-item>` orientate property must be set to 'vertical')booleanfalse
checkedfalseIf `true`, the picker is selected.booleanfalse
disabledfalseIf `true`, the user cannot interact with the picker.booleanfalse
displayinputfalseIf 'true', the picker will show the input (checkbox if multiselectable, radio if not)booleanfalse
iconidfalsecla-icon id e.g. glyphicons-basic-158-thumbnails-smallstringnull
imagefalseSVG image codestringnull
namefalseThe element name submitted to the formstringnull
pickerLabelTextfalseThe picker item text.stringnull
showlabeltextfalseIf 'true', the picker label text will be shownbooleantrue
valuefalseSelect input valueanynull

Slots

SlotDescription
anySlot for icon if not using the `<cla-icon>`

Events

EventDescriptionType
claPickerBlurEmitted when the picker loses focus.
claPickerDeselectEmitted when the selected picker is clicked.
claPickerDidLoadEmitted when the picker loads.
claPickerFocusEmitted when the picker has focus.
claPickerSelectEmitted when the picker is clicked.