File

radio/src/radio-button/radio-button.component.ts

Description

Represents a single option in a <talenra-radio-group>.

See RadioGroupDirective for usage examples.

Import

Example :
import { RadioButtonComponent } from '@talenra/components/radio';

../../../#/on-off-controls

Extends

ControlBaseDirective

Implements

OnInit AfterViewInit

Metadata

Index

Inputs
Accessors

Inputs

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 FormControl if used in a reactive form context.

value
Type : any

The control's current value.

readonly
Type : boolean, unknown
Default value : false, { transform: booleanAttribute }

Determines whether the control is readonly.

Accessors

checked
getchecked()

The control's checked state.

Returns : boolean
setchecked(value: boolean)

Set the control's checked state.

Parameters :
Name Type Optional
value boolean No
Returns : void

results matching ""

    No results matching ""