Neverending Plethora of Modules
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

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

Keywords

Install

npm i e-switch

DownloadsWeekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • avatar