NativeScript-RadioButton
A NativeScript plugin for the native radiogroup and radiobutton widget.
Platform controls used:
Android | iOS |
---|---|
Android RadioGroup | NONE |
Android RadioButton | NONE |
Installation
From your command prompt/terminal go to your app's root folder and execute:
tns plugin add nativescript-radiobutton
Useage
Angular
Import to NgModule for use
Place this in your view.
Supported Properties
RadioButton
Android | Example |
---|---|
enabled | enabled="true | false" |
text | text="a string" |
checked | checked="true | false" |
RadioGroup
Android | Returns |
---|---|
value | the index of the radio button selected |
Supported Events
RadioButton
Android | Example |
---|---|
enabled | enabled="true | false" |
text | text="a string" |
checked | checked="true | false" |
RadioGroup
Android | Type |
---|---|
value | EventEmitter |