limestone/Dropdown
Limestone styled Dropdown components
Loading Live Preview
Loading Live Preview
Members
Section titled “Members ”Dropdown Component
Section titled “Dropdown   Component ”A Limestone Dropdown component.
By default, Dropdown maintains the state of its selected property. Supply the
defaultSelected property to control its initial value. If you wish to directly control updates
to the component, supply a value to selected at creation time and update it in response to
onSelect events.
Extends:
limestone/Dropdownlimestone/Dropdown.DropdownBase
DropdownBase Component
Section titled “DropdownBase   Component ”A stateless Dropdown component.
Extends:
limestone/Buttonlimestone/Button.Button
Extends:
limestone/ContextualPopupDecoratorlimestone/ContextualPopupDecorator.ContextualPopupDecorator
Properties
aria-label
Section titled “aria-label”The "aria-label" for the Dropdown.
Items to be displayed in the Dropdown when open.
Takes either an array of strings or an array of objects. When strings, the values will be
used in the generated components as the readable text. When objects, the properties will
be passed onto an Item component; children as well as a unique key properties are
required.
Placement of the Dropdown.
Default: 'below'disabled
Section titled “disabled”Disables Dropdown, making it non-interactive.
onClose
Section titled “onClose”Called when the Dropdown is closing.
onOpen
Section titled “onOpen”Called when the Dropdown is opening.
onSelect
Section titled “onSelect”Called when an item is selected.
The event payload will be an object with the following members:
data- The value for the option as received in thechildrenpropselected- Number representing the selected option, 0 indexed
Displays the items.
Default: falseplaceholder
Section titled “placeholder”Text displayed in the Dropdown when nothing is selected.
The placeholder will be replaced by the selected item.
Default: 'No Selection'selected
Section titled “selected”Index of the selected item.
The size of the Dropdown's limestone/Buttonlimestone/Button.Button component.
Default: 'large'Primary title text of the Dropdown.
Width of the Dropdown.
Default: 'large'DropdownDecorator Higher-Order Component
Section titled “DropdownDecorator   Higher-Order Component ”Applies Limestone specific behaviors and functionality to limestone/Dropdownlimestone/Dropdown.DropdownBase.
Includes:
ui/Changeableui/Changeable.Changeable
Includes:
ui/Toggleableui/Toggleable.Toggleable
Includes:
spotlight/SpotlightContainerDecoratorspotlight/SpotlightContainerDecorator.SpotlightContainerDecorator
Properties added to wrapped component
Displays the items.
Default: falseselected
Section titled “selected”Index of the selected item.
defaultSelected
Section titled “defaultSelected”The initial selected index when selected is not defined.