MdFilledSelect

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.

Author

Maanrifa Bacar Ali

Constructors

Link copied to clipboard
constructor(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)

Properties

Link copied to clipboard
var disabled: <Error class: unknown class>

Whether or not the widget is disabled.

Link copied to clipboard
var error: <Error class: unknown class>

Gets or sets whether or not the select is in a visually invalid state. This error state overrides the error state controlled by reportValidity.

Link copied to clipboard
var errorText: <Error class: unknown class>

The error message that replaces supporting text when error is true. If errorText is an empty string, then the supportingText will continue to show. This error message overrides the error message displayed by reportValidity.

Link copied to clipboard
val form: <Error class: unknown class>?

The associated form element with which this element's value will submit.

Link copied to clipboard
var label: <Error class: unknown class>

The floating label for the field.

Link copied to clipboard
val labels: <Error class: unknown class>?

The labels this element is associated with.

Link copied to clipboard
var menuPositioning: <Error class: unknown class>

Whether or not the underlying md-menu should be position: fixed to display in a top-level manner, or position: absolute.

Link copied to clipboard
var name: <Error class: unknown class>

The name to use in form submission.

Link copied to clipboard

List of available options.

Link copied to clipboard
open var parent: <Error class: unknown class>?
Link copied to clipboard
var quick: <Error class: unknown class>

Opens the menu synchronously with no animation.

Link copied to clipboard
var required: <Error class: unknown class>

Indicates that the component must provides a valid value when participating in form submission.

Link copied to clipboard

Index of the selected option.

Link copied to clipboard

List of selected options.

Link copied to clipboard
var supportingText: <Error class: unknown class>

Conveys additional information below the select, such as how it should be used.

Link copied to clipboard
var typeaheadDelay: <Error class: unknown class>

The max time between the keystrokes of the typeahead select / menu behavior before it clears the typeahead buffer.

Link copied to clipboard

Message to display when the component value is not valid.

Link copied to clipboard
val validity: <Error class: unknown class>?

Gets the element's current validity state.

Link copied to clipboard
var value: <Error class: unknown class>

The value that is submitted to the form.

Link copied to clipboard

Indicates that the element is a candidate for constraint validation.

Functions

Link copied to clipboard
open override fun add(item: MdSelectOption)

Adds given item to the current widget.

open override fun add(position: Int, item: MdSelectOption)

Adds given item to the current widget at the given position.

Link copied to clipboard
open override fun addAll(items: List<MdSelectOption>)

Adds a list of items to the current widget.

Link copied to clipboard
open override fun afterCreate(node: <Error class: unknown class>)
Link copied to clipboard
open override fun buildAttributeSet(attributeSetBuilder: <Error class: unknown class>)
Link copied to clipboard

Indicates the validity of the value of the element. If the value is invalid, this method also fires the invalid event on the element.

Link copied to clipboard
open fun dispose()
Link copied to clipboard
open override fun disposeAll()

Removes all items from the current widget and disposes them.

Link copied to clipboard
open override fun remove(item: MdSelectOption)

Removes given item from the current widget.

Link copied to clipboard
open override fun removeAll()

Removes all items from the current widget.

Link copied to clipboard
open override fun removeAt(position: Int)

Removes the item from the current widget at the given position.

Link copied to clipboard
open fun render(): <Error class: unknown class>
Link copied to clipboard

Performs the same validity checking steps as the checkValidity method. If the value is invalid, this method also fires the invalid event on the element, and (if the event isn't canceled) reports the problem to the user.

Link copied to clipboard
fun reset()

Reset the select to its default value.

Link copied to clipboard
fun select(index: Int)

Selects an option given the index of the option.

fun select(value: String)

Selects an option given the value of the option.

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): <Error class: unknown class>
Link copied to clipboard

Sets a custom validity message for the underlying element.