e-switch

1.0.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i e-switch

      Weekly Downloads

      1

      Version

      1.0.0

      License

      ISC

      Last publish

      Collaborators

      • lemonl2