NgDocOptionComponent
Option of a list. Clicking it, or pressing Enter while it is active, checks it in its host control; an option that contains a link follows the link instead.
- Decorators
@Component - Selectors
ng-doc-option - Generic types
T- Extends
DIStateControl<T>- Implements
NgDocListItem OnDestroy
@Component ({ … })
export class NgDocOptionComponent <T>
extends DIStateControl<T>
implements NgDocListItem , OnDestroy { … }Members
Constructor1 | |||||||||||||||||
() | — | ||||||||||||||||
Signature | |||||||||||||||||
Properties14 | |||||||||||||||||
change: (value: T | null) => void | — | ||||||||||||||||
changeDetectorRef: | — | ||||||||||||||||
checked: | — | ||||||||||||||||
config?: DIStateControlConfig<boolean | TModel> | undefined | — | ||||||||||||||||
disabledValue: | — | ||||||||||||||||
elementRef: | — | ||||||||||||||||
hovered: | Whether the option is the active item of the list's keyboard navigation. | ||||||||||||||||
incomingUpdate?: ((value: T | null) => void) | undefined | — | ||||||||||||||||
list: | — | ||||||||||||||||
model: | — | ||||||||||||||||
ngControl: | — | ||||||||||||||||
renderer: | — | ||||||||||||||||
touch: () => void | Function that should be used to make control touched. | ||||||||||||||||
value: true | TModel | — | ||||||||||||||||
Accessors4 | |||||||||||||||||
get disabled: boolean | Returns true if the control is disabled. | ||||||||||||||||
set disabled: boolean | — | ||||||||||||||||
get hasValue: boolean | Returns true if the control is not empty. | ||||||||||||||||
get isIntermediate: boolean | — | ||||||||||||||||
Methods13 | |||||||||||||||||
(): void | Sets checked state | ||||||||||||||||
Signature Returns voidOverloads
| |||||||||||||||||
(): void | Sets intermediate state | ||||||||||||||||
Signature Returns voidOverloads
| |||||||||||||||||
(…): void | — | ||||||||||||||||
Signature Parameters
Returns voidOverloads
| |||||||||||||||||
(): void | — | ||||||||||||||||
Signature Returns void | |||||||||||||||||
(): void | — | ||||||||||||||||
Signature Returns voidOverloads
| |||||||||||||||||
(…): void | Method is called by the forms API. | ||||||||||||||||
Signature Parameters
Returns voidOverloads
| |||||||||||||||||
(): void | Selects the option as if the user did: follows its link, or checks it. | ||||||||||||||||
Signature Returns void | |||||||||||||||||
(): void | Marks the option as the active item. | ||||||||||||||||
Signature Returns void | |||||||||||||||||
(): void | Clears the active-item mark. | ||||||||||||||||
Signature Returns void | |||||||||||||||||
(): void | Toggles checked state | ||||||||||||||||
Signature Returns voidOverloads
| |||||||||||||||||
(): void | Sets unchecked state | ||||||||||||||||
Signature Returns voidOverloads
| |||||||||||||||||
(…): void | Updates the model of the current control. This is the main method that should be used to update the model. | ||||||||||||||||
Signature Parameters
Returns voidOverloads
| |||||||||||||||||
(…): void | Method is called by the forms API to write to the view when programmatic changes from model to view are requested. | ||||||||||||||||
Signature Parameters
Returns voidOverloads
| |||||||||||||||||