Skip to main content

InputForm

A form with multiple inputs inside

Extends

Constructors

new InputForm()

new InputForm(dart): InputForm

Parameters

ParameterType
dartany

Returns

InputForm

Overrides

DartWrapper . constructor

Source

src/widgets.ts:1451

Properties

PropertyTypeInherited from
dartanyDartWrapper.dart

Accessors

inputs

get inputs(): InputBase<any>[]

All inputs added to the form

Returns

InputBase<any>[]

Source

src/widgets.ts:1468


isValid

get isValid(): boolean

Returns true if all inputs are valid.

Returns

boolean

Source

src/widgets.ts:1483


onInputChanged

get onInputChanged(): Observable <EventData <InputArgs>>

Occurs when user changes any input value in a form.

Returns

Observable <EventData <InputArgs>>

Source

src/widgets.ts:1477


onValidationCompleted

get onValidationCompleted(): Observable<any>

Occurs after the form is validated, no matter whether it is valid or not.

Returns

Observable<any>

Source

src/widgets.ts:1480


root

get root(): HTMLElement

Returns

HTMLElement

Source

src/widgets.ts:1463


source

get source(): any

set source(source): void

Parameters

ParameterType
sourceany

Returns

any

Source

src/widgets.ts:1472

Methods

getInput()

getInput(propertyName): InputBase<any>

Parameters

ParameterType
propertyNamestring

Returns

InputBase<any>

Source

src/widgets.ts:1465


forFuncCall()

static forFuncCall(funcCall, options?): Promise <InputForm>

Creates an InputForm for the specified function call.

Parameters

ParameterType
funcCallFuncCall
options?object
options.skipDefaultInit?boolean
options.twoWayBinding?boolean

Returns

Promise <InputForm>

Source

src/widgets.ts:1454


forInputs()

static forInputs(inputs): InputForm

Parameters

ParameterType
inputsInputBase<any>[]

Returns

InputForm

Source

src/widgets.ts:1458