A plugin for nativescript that exposes the radiogroup and radiobutton native view elements.
npm install @webileapps/nativescript-radiobuttonThis is a fork of other NativeScript plugin for the native radiogroup and radiobutton widget.
* Support for tintColor xml property ( or tint-color css property).
* Make color xml (and css property) work correctly.
#### Platform controls used:
Android | iOS
---------- | -------
Android RadioGroup | NONE
Android RadioButton | NONE
tns plugin add @webileapps/nativescript-radiobutton
If you want a quickstart, clone the repo, cd src, and execute the following commands:
``bash`
npm install
npm run demo.android
Import to NgModule for use
`typescript
import { RadioButtonModule } from '@webileapps/nativescript-radiobutton/angular'
@NgModule({
imports: [
RadioButtonModule
]
})
`
Place this in your view.
`xml`
In your main.js register both RadioGroup and RadioButton elements
`js`
Vue.registerElement('RadioGroup', () => require('@webileapps/nativescript-radiobutton').RadioGroup)
Vue.registerElement('RadioButton', () => require('@webileapps/nativescript-radiobutton').RadioButton)
And in your template, use it
`xml``
:key="item.id"
:text="item.text">