This is a migrated thread and some comments may be shown as answers.

Nativescript Radio Button

2 Answers 397 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Paulson
Top achievements
Rank 1
Paulson asked on 29 May 2017, 12:45 PM

nativescript-radiobutton - npm this plugin only for Android 

Is it any radio button for ios ?

In switch can i set text like yes or no two switch is not good to see. If switch is false it should show "<Label text="NO" />  If switch is true then it should show <Label text="YES" />  can any one help  me?

 

2 Answers, 1 is accepted

Sort by
0
Paulson
Top achievements
Rank 1
answered on 29 May 2017, 12:56 PM

nativescript-radiobutton - npm this plugin only for Android 

Is it any radio button for ios ?
In switch can i set text like yes or no two switch is not good to see. If switch is false it should show "<Label text="NO" />  If switch is true then it should show <Label text="YES" /> using  using "JAVASCRIPT"  can any one help  me?

 

0
Nick Iliev
Telerik team
answered on 29 May 2017, 01:40 PM
Hello Paulson,

There is no radio button native control in iOS. This said there are some third party CocoaPods that mimic radio buttons. One of them is used to create the plugin nativescript-checkbox. The plugin has support for both iOS and Android.

Regarding the question about Switch.
Yes, you can use the checked property with checkedChange event and use its boolean value to change the text value of the bound Label. Sample project demonstrating the issue can be found here and the same scenario for Angular enabled application can be found here,

Regards,
Nikolay Iliev
Progress Telerik
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
Tags
General Discussion
Asked by
Paulson
Top achievements
Rank 1
Answers by
Paulson
Top achievements
Rank 1
Nick Iliev
Telerik team
Share this question
or