1.0.0 • Published 9 years ago
e-switch
Licence
ISC
Version
1.0.0
Deps
0
Vulns
0
Weekly
0
eSwitch
A simple and powerful style switch for checkbox.
Installation
npm:
$ npm i --save e-switch
Usage
<e-switch ng-model="x.status"
ng-click="event()"
disabled="x.disabled"
on="ON"
off="Off"></sharp-switch>
- ngModel: the value of switch
- ngClick: if use it, you must change the value of ngModel by yourself
- disabled: true or false, default: false
- on/off: the title of switch in different status