radio/src/radio-button/radio-button.component.ts
Represents a single option in a <talenra-radio-group>.
See RadioGroupDirective for usage examples.
import { RadioButtonComponent } from '@talenra/components/radio';
| changeDetection | ChangeDetectionStrategy.OnPush |
| host | { |
| selector | talenra-radio-button |
| styleUrls | ./radio-button.component.scss |
| templateUrl | ./radio-button.component.html |
Inputs |
Accessors |
| checked |
Type : boolean
|
|
The control's checked state. |
| 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 |
| value |
Type : any
|
|
The control's current value. |
| readonly |
Type : boolean, unknown
|
Default value : false, { transform: booleanAttribute }
|
|
Determines whether the control is readonly. |
| checked | ||||||
getchecked()
|
||||||
|
The control's checked state.
Returns :
boolean
|
||||||
setchecked(value: boolean)
|
||||||
|
Set the control's checked state.
Parameters :
Returns :
void
|