Package-level declarations

Material web select components (filled, outlined, select option).

Types

Link copied to clipboard
open class MdFilledSelect(label: String? = null, quick: Boolean = false, disabled: Boolean = false, required: Boolean = false, errorText: String? = null, supportingText: String? = null, error: Boolean = false, menuPositioning: SelectMenuPositioning = SelectMenuPositioning.Popover, typeaheadDelay: Int = DEFAULT_TYPEAHEAD_DELAY, selectedIndex: Int = -1, name: String? = null, value: String? = null, validationMessage: String? = null, className: String? = null, init: MdFilledSelect.() -> Unit? = null) : MdSelect

Filled select type.

Link copied to clipboard
open class MdOutlinedSelect(label: String? = null, quick: Boolean = false, disabled: Boolean = false, required: Boolean = false, errorText: String? = null, supportingText: String? = null, error: Boolean = false, menuPositioning: SelectMenuPositioning = SelectMenuPositioning.Popover, typeaheadDelay: Int = DEFAULT_TYPEAHEAD_DELAY, selectedIndex: Int = -1, name: String? = null, value: String? = null, validationMessage: String? = null, className: String? = null, init: MdOutlinedSelect.() -> Unit? = null) : MdSelect

Outlined select type.

Link copied to clipboard

Select menus display a list of choices on temporary surfaces and display the currently selected menu item above the menu.

Link copied to clipboard
open class MdSelectOption(value: String? = null, disabled: Boolean = false, selected: Boolean = false, typeaheadText: String? = null, className: String? = null, init: MdSelectOption.() -> Unit? = null) : MdItemWidget, HasHeadlineSlot, HasLeadingSlot, HasSupportingTextSlot, HasTrailingSlot

Select options are element that belongs to a select.

Functions

Link copied to clipboard
fun SnOn<MdSelect>.closed(block: (Event) -> Unit)

Fired when the select's menu has finished animations and closed.

Link copied to clipboard

Closes the encapsulating menu on closable interaction. CustomEvent.bubbles, CustomEvent.composed

Link copied to clipboard
fun SnOn<MdSelect>.closing(block: (Event) -> Unit)

Fired when the select's menu is about to close.

Link copied to clipboard
fun Container.filledSelect(label: String? = null, quick: Boolean = false, disabled: Boolean = false, required: Boolean = false, errorText: String? = null, supportingText: String? = null, error: Boolean = false, menuPositioning: SelectMenuPositioning = SelectMenuPositioning.Popover, typeaheadDelay: Int = DEFAULT_TYPEAHEAD_DELAY, selectedIndex: Int = -1, name: String? = null, value: String? = null, validationMessage: String? = null, className: String? = null, init: MdFilledSelect.() -> Unit? = null): MdFilledSelect
Link copied to clipboard
fun SnOn<MdSelect>.opened(block: (Event) -> Unit)

Fired when the select's menu has finished animations and opened.

Link copied to clipboard
fun SnOn<MdSelect>.opening(block: (Event) -> Unit)

Fired when the select's menu is about to open.

Link copied to clipboard
fun Container.outlinedSelect(label: String? = null, quick: Boolean = false, disabled: Boolean = false, required: Boolean = false, errorText: String? = null, supportingText: String? = null, error: Boolean = false, menuPositioning: SelectMenuPositioning = SelectMenuPositioning.Popover, typeaheadDelay: Int = DEFAULT_TYPEAHEAD_DELAY, selectedIndex: Int = -1, name: String? = null, value: String? = null, validationMessage: String? = null, className: String? = null, init: MdOutlinedSelect.() -> Unit? = null): MdOutlinedSelect
Link copied to clipboard

Requests the parent md-select to deselect this element when selected changed to false.

Link copied to clipboard

Requests the parent md-select to select this element (and deselect others if single-selection) when selected changed to true.

Link copied to clipboard
fun MdSelect.selectOption(value: String? = null, disabled: Boolean = false, selected: Boolean = false, typeaheadText: String? = null, className: String? = null, init: MdSelectOption.() -> Unit? = null): MdSelectOption