1.0.0 • Published 7 years ago

e-switch v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

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