Nativescript Radio Button

Thread is closed for posting
3 posts, 0 answers
  1. Paulson
    Paulson avatar
    54 posts
    Member since:
    Apr 2016

    Posted 29 May 2017 Link to this post

    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. Paulson
    Paulson avatar
    54 posts
    Member since:
    Apr 2016

    Posted 29 May 2017 in reply to Paulson Link to this post

    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?

     

  3. Nikolay Iliev
    Admin
    Nikolay Iliev avatar
    351 posts

    Posted 29 May 2017 Link to this post

    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.
Back to Top