Home > @websublime/forms > BaseControl
BaseControl class
Base Control
Signature:
export declare class BaseControl<T = any>
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(schema, parent, context) | Constructs a new instance of the BaseControl class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
context | any | ||
data | unknown | ||
errors | ErrorModel[] | ||
hasErrors | boolean | Getter has errors | |
isDirty | boolean | ||
isFocus | boolean | ||
isLoading | boolean | ||
isPrestine | boolean | ||
isTouch | boolean | ||
isValid | boolean | ||
items? | Array<BaseControl<T>> | never[] | (Optional) | |
parent | BaseControl<any> | null | ||
properties? | Record<string, BaseControl<T>> | (Optional) | |
schema | BaseSchemaType<T> | ArraySchemaType<T> | ObjectSchemaType<T> | ||
weakMap | WeakMap<this, unknown> |
Methods
Method | Modifiers | Description |
---|---|---|
notifyParent() | ||
onChange(child) | ||
setData(data) | ||
setDirty() | Set control dirty state to true | |
setFocus(focus) | Set control focus state | |
setTouch() | Set control touch state to true | |
validate(data, drill) | ||
validateAll(data) |