JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums Buttons Group of radio buttons in a Angular react form – how to retrieve value of radio Reply To: Group of radio buttons in a Angular react form – how to retrieve value of radio

#102111
YavorDashev
Member

Hi davout,
AS from you post I suggest that you want to get the value of the smart-radio-button component and not its boolean value.
If so you can do so using the change event and using you method:

//In your app.component.ts file
  onRecurringIntervalChange(event:any):void {
    let radioButtonValue: EventTarget = event.target.value;
    console.log(radioButtonValue)
  }
 

And for the starting selection it depends on which of the radio buttons you set the checked property and if you don’t set it to either of them none of them will be selected.
Let me know if that works for you!
Please, do not hesitate to contact us if you have any additional questions.
Best regards,
Yavor Dashev
Smart UI Team
https://www.htmlelements.com/