ChoiceInput<T>
Input control base. Could be used for editing Property values as well. The root is a div that consists of captionLabel and input.
Extends
InputBase
<T
>
Type parameters
Type parameter |
---|
T |
Constructors
new ChoiceInput()
new ChoiceInput<
T
>(dart
,onChanged
):ChoiceInput
<T
>
Parameters
Parameter | Type | Default value |
---|---|---|
dart | any | undefined |
onChanged | any | null |
Returns
ChoiceInput
<T
>
Overrides
Source
Properties
Property | Type | Overrides |
---|---|---|
dart | any | InputBase .dart |
Accessors
caption
get
caption():string
set
caption(s
):void
Parameters
Parameter | Type |
---|---|
s | string |
Returns
string
Source
captionLabel
get
captionLabel():HTMLElement
Returns
HTMLElement
Source
classList
get
classList():DOMTokenList
Returns
DOMTokenList
Source
dataType
get
dataType():string
Data type this input can edit. See Type.
Returns
string
Source
enabled
get
enabled():boolean
Whether the input is enabled
set
enabled(v
):void
Parameters
Parameter | Type |
---|---|
v | boolean |
Returns
boolean
Source
format
get
format():string
Value format.
set
format(s
):void
Parameters
Parameter | Type |
---|---|
s | string |
Returns
string
Source
input
get
input():HTMLElement
Returns the actual input
Returns
HTMLElement
Source
inputType
get
inputType():string
Input type identifier (such as "Slider" for the slider input). See InputType.
Returns
string
Source
items
get
items():T
[]
set
items(s
):void
Parameters
Parameter | Type |
---|---|
s | T [] |
Returns
T
[]
Source
notify
get
notify():boolean
Whether events are thrown on value set
set
notify(v
):void
Parameters
Parameter | Type |
---|---|
v | boolean |
Returns
boolean
Source
nullable
get
nullable():boolean
Whether empty values are allowed
set
nullable(v
):void
Parameters
Parameter | Type |
---|---|
v | boolean |
Returns
boolean
Source
onChanged
get
onChanged():Observable
<T
>
Occurs when [value] is changed, either by user or programmatically.
Returns
Observable
<T
>
Source
onInput
get
onInput():Observable
<Event
>
Occurs when [value] is changed by user.
Returns
Observable
<Event
>
Source
property
get
property():any
Property if associated with
set
property(p
):void
Parameters
Parameter | Type |
---|---|
p | Property |
Returns
any
Source
readOnly
get
readOnly():boolean
Whether the input is readonly
set
readOnly(v
):void
Parameters
Parameter | Type |
---|---|
v | boolean |
Returns
boolean
Source
root
get
root():HTMLElement
Visual root (typically a div element that contains caption and input)
Returns
HTMLElement
Source
stringValue
get
stringValue():string
String representation of the value
set
stringValue(s
):void
Parameters
Parameter | Type |
---|---|
s | string |
Returns
string
Source
value
get
value():T
Input value
set
value(x
):void
Parameters
Parameter | Type |
---|---|
x | T |
Returns
T
Source
Methods
addCaption()
addCaption(
caption
):InputBase
<T
>
Adds the specified caption
Parameters
Parameter | Type |
---|---|
caption | string |
Returns
InputBase
<T
>