-
Notifications
You must be signed in to change notification settings - Fork 125
Platform: Radio Button V1.0 Component Technical Design
sKudum edited this page Feb 6, 2020
·
9 revisions
Radio buttons allow the user to see all options and select one.
This is used when there are more than 1 option.
<fdp-radio-button
[Id]="radiobuttonID"
[value]="radioButtonValue"
[disabled]="true|false"
[selected]="true|false"
[required]="true|false"
[groupId]="idOfButtongroup"
(onChange)="onChange($event)"
>
</fdp-radio-button>
##RadioButton component
Id of the radio button.
Value for the radio-button
Defines if the radio button is disabled or not.
The default value is false
for making a radio button default selected.only 1 will be selected by default.
The default value is true
Whether the radio button is required.
The default value is false
Unique identification for grouping all radion buttons belongs to.
When checked state of radio button changes event is emitted.
N/A
--
1). The radio button will be part of the farm controller. so label, positions, validations should be handled by using from form-field component.
2). When the Radio button is not part of form then we will be using independent components along with it. for example for the label, we can use the label component. and validations can be handled during CTA on a respective page based on business requirements.