shared/src/on-off-control-base/on-off-control-base.component.ts
Abstract component for building on-off-controls (e.g. checkbox).
Inputs |
Accessors |
| checked |
Type : boolean
|
|
Determines whether the control is checked. Note: Typically the |
| value |
Type : boolean
|
|
The native element's value attribute. Setting the value will update the checked
state of the control ( Note: A native checkbox element's value and checked state do not neccessarily align.
However, the on-off-controls in this library (e.g. |
| label |
Type : string
|
Default value : ''
|
|
Label displayed to the user. |
| disabled |
Type : boolean
|
|
Determinates whether the control is en-/disabled. |
| formControlName |
Type : string
|
Default value : ''
|
|
Name of the corresponding |
| readonly |
Type : boolean, unknown
|
Default value : false, { transform: booleanAttribute }
|
|
Determines whether the control is readonly. |
| checked | ||||||
getchecked()
|
||||||
|
Determines whether the control is checked. Note: Typically the
Returns :
boolean
|
||||||
setchecked(value: boolean)
|
||||||
|
Set whether the control is checked.
Parameters :
Returns :
void
|
| value | ||||||
getvalue()
|
||||||
|
The native element's value attribute. Setting the value will update the checked
state of the control ( Note: A native checkbox element's value and checked state do not neccessarily align.
However, the on-off-controls in this library (e.g. |
||||||
setvalue(value: boolean)
|
||||||
|
Set the control's value.
Parameters :
Returns :
void
|