Dropdown

A multi purpose dropdown

getOptionIcon

Gets option icon

Parameters

label
String

Returns

String
Icon

getFlattenedOptions

Converts options into a flattened structure

Parameters

Returns

Object
Options

getValueLabel

Gets the current value label

Parameters

Returns

String
Value label

sanityCheck

Performs a sanity check of the value

Parameters

updateSelectedClasses

Updates all selected classes

Parameters

updatePositionClasses

Updates all position classes

Parameters

onChangeInternal

Event: Change value

Parameters

newValue
Object

onTypeahead

Event: Typeahead

Parameters

query
String

toggle

Toggles open/closed

Parameters

isOpen
Boolean

template

Template

Parameters