You should run npm install and bower install console commands before runing gulp command.
You should run gulp serve every time you want to work on the project and run a demo of plugin in your browser.
You should run gulp if you want to build a project.
Include Angular and loopify-ui-number-picker.min.js or loopify-ui-number-picker.js in your page. You can use bower:
bower install angular-loopify-number-picker
Add loopify.ui.numberPicker to your app's module dependencies:
angular.module('someModule', ['loopify.ui.numberPicker'])- bootstrap (3.3.5+)
| Name | Description | Required | Default value | Possible values |
|---|---|---|---|---|
value |
The current value. | Yes | undefined | Float |
min |
The minimum available value | No | -Infinity | Float |
max |
The minimum available value | No | Infinity | Float |
step |
The step of changing | No | 1 | Float |
enter |
If true then input can't change by enter | No | false | Boolean |
label |
Label for input | No | undefined | String |
percent |
If true then plugin has switch between '%' and label |
No | false | Boolean |
methodRound |
Possible value is one of rounding methods in object Math (floor, ceil, round) | No | undefined | String |
<loopify-number-picker
value="50">
</loopify-number-picker>Author: yura.l@webcodium.com