WSelectComponent class
The Input Component that can be used to show any array-like data, just like how native
Constructors
- WSelectComponent(WInputDecorService _decorSvc)
- the constructor
Properties
- clearable ↔ bool
-
when it sets to true, will show the close button icon that will nullify the value on clicked.
@Input('clearable'), read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- highlighted → WSelectOption
-
read-only
- highlightedIdx → int
-
read-only
- input ↔ InputElement
-
@ViewChild('input'), read / write
- inputWidth → num
-
read-only
- isRequired ↔ bool
-
sets the required state of input
useful for showing the html5 form validation if set to true.
@Input('required'), read / write
- loading ← bool
-
true will show the loading indicator of the w-input-decor located on the right hand side of it.
@Input('loading'), write-only
- optionPrefix ↔ TemplateRef
-
@ContentChild('optionPrefix'), read / write
-
options
↔ List<
WSelectOption> -
the dropdown options to be shown when the input field gets focused.
@Input('options'), read / write
- optionsContainer ↔ HtmlElement
-
@ViewChild('optionsContainer'), read / write
- optionSuffix ↔ TemplateRef
-
@ContentChild('optionSuffix'), read / write
-
optionsWithFilter
→ List<
WSelectOption> -
read-only
- placeholder ↔ String
-
@Input('placeholder'), read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- searchable ↔ bool
-
true makes input changeable.
false disables it.
@Input('searchable'), read / write
- selectedItemIdx → int
-
read-only
- selectedLabel → String
-
read-only
- showOptions ↔ bool
-
read / write
- value ↔ dynamic
-
the model. [...]
@Input('value'), read / write
- valueChange → Stream
-
@Output(), read-only
Methods
-
getOptionItemClasses(
WSelectOption o) → Map< String, bool> -
ngOnInit(
) → void -
Executed after the first change detection run for a directive. [...]
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
onInputChange(
String v) → void -
selectOption(
WSelectOption o) → void -
toggleShowOptions(
) → void -
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited