HTMLSelectElement$Typings extension

on

Properties

add ↔ void Function(HTMLElement, [dynamic])
getter/setter pair
addEventListener → ({void Function<K$>(HTMLElementEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})
Overload accessor: $1, $2
no setter
autocomplete Object
MDN Reference
getter/setter pair
checkValidity bool Function()
getter/setter pair
disabled bool
MDN Reference
getter/setter pair
form HTMLFormElement?
Retrieves a reference to the form that the object is embedded in.
no setter
item HTMLOptionElement? Function(num)
getter/setter pair
labels NodeListOf<HTMLLabelElement>
MDN Reference
no setter
length num
Sets or retrieves the number of objects in a collection.
getter/setter pair
multiple bool
Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
getter/setter pair
name String
Sets or retrieves the name of the object.
getter/setter pair
namedItem HTMLOptionElement? Function(String)
getter/setter pair
options HTMLOptionsCollection
Returns an HTMLOptionsCollection of the list of options.
no setter
remove → ({void Function() $1, void Function(num index) $2})
Overload accessor: $1, $2
no setter
removeEventListener → ({void Function<K$>(HTMLElementEventMap<K$> type, dynamic listener(K$), [Object? options]) $1, void Function(String type, Object listener, [Object? options]) $2})
Overload accessor: $1, $2
no setter
reportValidity bool Function()
getter/setter pair
required bool
When present, marks an element that can't be submitted without a value.
getter/setter pair
selectedIndex num
Sets or retrieves the index of the selected option in a select object.
getter/setter pair
selectedOptions HTMLCollectionOf<HTMLOptionElement>
MDN Reference
no setter
setCustomValidity ↔ void Function(String)
getter/setter pair
size num
Sets or retrieves the number of rows in the list box.
getter/setter pair
type String
Retrieves the type of select control based on the value of the MULTIPLE attribute.
no setter
validationMessage String
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
no setter
validity ValidityState
Returns a ValidityState object that represents the validity states of an element.
no setter
value String
Sets or retrieves the value which is returned to the server when the form control is submitted.
getter/setter pair
willValidate bool
Returns whether an element will successfully validate based on forms validation rules and constraints.
no setter

Operators

operator [](num index) HTMLElement
operator []=(num index, HTMLElement value) → void