nativescriptnativescript-angular

Radio Buttons in Nativescript


How to implement RadioButtons in Nativescript + Angular?

I have tried the RadioButton plugin but it has error during compile time. I have seen a post on stackoverflow stating to use font-awesome but it seems far more difficult to group the radio buttons.

Is it that I am ignoring any other simple method to create UI for something like this :

Label => Question: Select the fruit you like the most?

Radio 1 : Mango

Radio 2 : Apple

Radio 3 : Kiwi

Radio 4 : Banana

Any help in creating such interface?

Using Nativescript 5.0


Solution

  • Try nativescript-checkbox plugin, setting the boxType to circle will give you radio button style. For Grouped Radio Buttons, simply uncheck other radio buttons in group when one is selected.