https://github.com/donejs/donejs-number-input
A number input field for DoneJS using Bootstrap
https://github.com/donejs/donejs-number-input
Last synced: 3 months ago
JSON representation
A number input field for DoneJS using Bootstrap
- Host: GitHub
- URL: https://github.com/donejs/donejs-number-input
- Owner: donejs
- License: mit
- Created: 2016-02-16T15:50:33.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-06-18T21:50:27.000Z (almost 7 years ago)
- Last Synced: 2024-12-31T22:29:07.195Z (over 1 year ago)
- Language: JavaScript
- Size: 27.3 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# donejs-number-input
[](https://travis-ci.org/donejs/donejs-number-input)
A number input field for DoneJS using Bootstrap
## Usage
### ES6 use
With StealJS, you can import this module directly in a template that is autorendered:
```js
import plugin from 'donejs-number-input';
```
### CommonJS use
Use `require` to load `donejs-number-input` and everything else
needed to create a template that uses `donejs-number-input`:
```js
var plugin = require("donejs-number-input");
```
## AMD use
Configure the `can` and `jquery` paths and the `donejs-number-input` package:
```html
require.config({
paths: {
"jquery": "node_modules/jquery/dist/jquery",
"can": "node_modules/canjs/dist/amd/can"
},
packages: [{
name: 'donejs-number-input',
location: 'node_modules/donejs-number-input/dist/amd',
main: 'lib/donejs-number-input'
}]
});
require(["main-amd"], function(){});
```
### Standalone use
Load the `global` version of the plugin:
```html
```