bootstrap-duration-picker
Javascript library for selecting duration. Target input to which plugin is applied will contain duration in seconds.
Installation
Using Bower:
bower install bootstrap-duration-picker
Using NPM:
npm install bootstrap-duration-picker
Or simply copy bootstrap-duration-picker.css
and bootstrap-duration-picker.js
files to your project.
Example
Dependencies
- jQuery 1.*
- Bootstrap 3.* (for styling only)
Usage
; // or ;
Public methods
Method | Example | Description |
---|---|---|
setValue | $('#selector').data('durationPicker').setValue(0); |
Allows to reinitialize duration picker value after it's been created. Accepts new number of seconds |
destroy | $('#selector').data('durationPicker').destroy(); |
Destroys the plugin, reverting any DOM changes made by the plugin |
License
Please see LICENSE for licensing details.