0.1.0 • Published 8 years ago

nativescript-radiobutton v0.1.0

Weekly downloads
11
License
Apache 2.0
Repository
github
Last release
8 years ago

NativeScript-RadioButton

npm npm

A NativeScript plugin for the native radiogroup and radiobutton widget.

Platform controls used:

AndroidiOS
Android RadioGroupNONE
Android RadioButtonNONE

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

import { RadioButtonModule } from 'nativescript-radiobutton/angular'

@NgModule({
    imports: [
        RadioButtonModule
    ]
})

Place this in your view.

<StackLayout>
    <RadioGroup [(value)]="dataBoundVariable">
        <RadioButton text="Selection 1"></RadioButton>
        <RadioButton text="Selection 2"></RadioButton>
        <RadioButton text="Selection 3"></RadioButton>
    </RadioGroup>
</StackLayout>

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

0.1.0

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago