InputForm
Defined in: src/widgets/forms.ts:213
A form with multiple inputs inside
Extends
Constructors
Constructor
new InputForm(
dart):InputForm
Defined in: src/widgets/forms.ts:214
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
InputForm
Overrides
Properties
| Property | Type | Inherited from | Defined in |
|---|---|---|---|
dart | any | DartWrapper.dart | src/widgets/base.ts:412 |
Accessors
inputs
Get Signature
get inputs():
InputBase<any>[]
Defined in: src/widgets/forms.ts:231
All inputs added to the form
Returns
InputBase<any>[]
isValid
Get Signature
get isValid():
boolean
Defined in: src/widgets/forms.ts:246
Returns true if all inputs are valid.
Returns
boolean
onInputChanged
Get Signature
Defined in: src/widgets/forms.ts:240
Occurs when user changes any input value in a form.
Returns
Observable<EventData<InputArgs>>
onValidationCompleted
Get Signature
get onValidationCompleted():
Observable<any>
Defined in: src/widgets/forms.ts:243
Occurs after the form is validated, no matter whether it is valid or not.
Returns
Observable<any>
root
Get Signature
get root():
HTMLElement
Defined in: src/widgets/forms.ts:226
Returns
HTMLElement
source
Get Signature
get source():
any
Defined in: src/widgets/forms.ts:235
Returns
any
Set Signature
set source(
source):void
Defined in: src/widgets/forms.ts:237
Parameters
| Parameter | Type |
|---|---|
source | any |
Returns
void
Methods
getInput()
getInput(
propertyName):InputBase
Defined in: src/widgets/forms.ts:228
Parameters
| Parameter | Type |
|---|---|
propertyName | string |
Returns
forFuncCall()
staticforFuncCall(funcCall,options?):Promise<InputForm>
Defined in: src/widgets/forms.ts:217
Creates an InputForm for the specified function call.
Parameters
| Parameter | Type |
|---|---|
funcCall | FuncCall |
options? | { skipDefaultInit?: boolean; twoWayBinding?: boolean; } |
options.skipDefaultInit? | boolean |
options.twoWayBinding? | boolean |
Returns
Promise<InputForm>
forInputs()
staticforInputs(inputs):InputForm
Defined in: src/widgets/forms.ts:221
Parameters
| Parameter | Type |
|---|---|
inputs | InputBase<any>[] |
Returns
InputForm