A plugin for nativescript that exposes the radiogroup and radiobutton native view elements.
npm install nativescript-radiobuttonA NativeScript plugin for the native radiogroup and radiobutton widget.
#### Platform controls used:
Android | iOS
---------- | -------
Android RadioGroup | NONE
Android RadioButton | NONE
tns plugin add nativescript-radiobutton
Import to NgModule for use
``typescript
import { RadioButtonModule } from 'nativescript-radiobutton/angular'
@NgModule({
imports: [
RadioButtonModule
]
})
`
Place this in your view.
`html``
###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
###RadioButton
Android | Example
---------- | ----------
enabled | enabled="true \| false"
text | text="a string"
checked | checked="true \| false"
###RadioGroup
Android | Type
---------- | ----------
value | EventEmitter