InputForm
Defined in: src/widgets/forms.ts:222
A form with multiple inputs inside
Extends
Constructors
Constructor
new InputForm(
dart):InputForm
Defined in: src/widgets/forms.ts:223
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:240
All inputs added to the form
Returns
InputBase<any>[]
isValid
Get Signature
get isValid():
boolean
Defined in: src/widgets/forms.ts:255
Returns true if all inputs are valid.
Returns
boolean
onFormPropertyChanged
Get Signature
get onFormPropertyChanged():
Observable<EventData<PropertyChangeArgs>>
Defined in: src/widgets/forms.ts:262
Fires when a property bound to the form via the property-grid path changes.
Returns
Observable<EventData<PropertyChangeArgs>>
onInputChanged
Get Signature
Defined in: src/widgets/forms.ts:249
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:252
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:235
Returns
HTMLElement
source
Get Signature
get source():
any
Defined in: src/widgets/forms.ts:244
Returns
any
Set Signature
set source(
source):void
Defined in: src/widgets/forms.ts:246
Parameters
| Parameter | Type |
|---|---|
source | any |
Returns
void
Methods
getInput()
getInput(
propertyName):InputBase
Defined in: src/widgets/forms.ts:237
Parameters
| Parameter | Type |
|---|---|
propertyName | string |
Returns
validateInputs()
validateInputs():
boolean
Defined in: src/widgets/forms.ts:259
Runs validation across all inputs in the form. Returns true when every input is valid. Also updates isValid and fires onValidationCompleted.
Returns
boolean
forFuncCall()
staticforFuncCall(funcCall,options?):Promise<InputForm>
Defined in: src/widgets/forms.ts:226
Creates an InputForm for the specified function call.
Parameters
| Parameter | Type |
|---|---|
funcCall | FuncCall |
options? | { skipDefaultInit?: boolean; skipTableAutoFill?: boolean; twoWayBinding?: boolean; } |
options.skipDefaultInit? | boolean |
options.skipTableAutoFill? | boolean |
options.twoWayBinding? | boolean |
Returns
Promise<InputForm>
forInputs()
staticforInputs(inputs):InputForm
Defined in: src/widgets/forms.ts:230
Parameters
| Parameter | Type |
|---|---|
inputs | InputBase<any>[] |
Returns
InputForm