Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kanety/jquery-ui-durationspinner
https://github.com/kanety/jquery-ui-durationspinner
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kanety/jquery-ui-durationspinner
- Owner: kanety
- License: mit
- Created: 2018-11-20T05:42:46.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-10T02:34:08.000Z (about 6 years ago)
- Last Synced: 2024-12-25T04:04:44.214Z (23 days ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jquery-ui-durationspinner
Time duration spinner using jquery-ui.
## Dependencies
Include following libraries before use.
* jquery-ui-dist
* moment
* moment-duration-format## Installation
Install from npm:
$ npm install @kanety/jquery-ui-durationspinner --save
## Usage
Create a spinner:
```javascript
$('input.spinner').durationspinner();
```Change time format to `hh:mm:ss`:
```javascript
$('input.spinner').durationspinner({ format: 'hh:mm:ss', step: 1, page: 60 });
```You can use `dhms` for the format.
* d: days
* h: hours
* m: minutes
* s: seconds## License
The library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).