mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-30 02:40:08 +00:00
started docs for progressBar(..)...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d5e823716e
commit
7cd5321dd5
35
ui/ui.js
35
ui/ui.js
@ -439,6 +439,7 @@ function showContextIndicator(cls, text){
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// Make or get progress bar container...
|
// Make or get progress bar container...
|
||||||
|
//
|
||||||
// mode can be:
|
// mode can be:
|
||||||
// - null - default
|
// - null - default
|
||||||
// - 'floating'
|
// - 'floating'
|
||||||
@ -470,6 +471,40 @@ function getProgressContainer(mode, parent){
|
|||||||
|
|
||||||
// Make or get progress bar by name...
|
// Make or get progress bar by name...
|
||||||
//
|
//
|
||||||
|
// Events:
|
||||||
|
// - progressUpdate
|
||||||
|
// Triggered by user to update progress bar state.
|
||||||
|
//
|
||||||
|
// takes two arguments:
|
||||||
|
// done - the number of done tasks
|
||||||
|
// total - the total number of tasks
|
||||||
|
//
|
||||||
|
// Usage:
|
||||||
|
// widget.trigger('progressUpdate', [done, total])
|
||||||
|
//
|
||||||
|
// Shorthand:
|
||||||
|
// updateProgressBar(name, done[, total])
|
||||||
|
//
|
||||||
|
// - progressClose
|
||||||
|
// Triggered by the close button.
|
||||||
|
// By default triggers the progressDone event.
|
||||||
|
//
|
||||||
|
// Shorthand:
|
||||||
|
// closeProgressBar(name)
|
||||||
|
//
|
||||||
|
// - progressDone
|
||||||
|
// Triggered by user or progressClose handler.
|
||||||
|
// Set the progress bar to done state and hide after hide_timeout.
|
||||||
|
//
|
||||||
|
// - progressReset
|
||||||
|
// Triggered by user or progressBar(..) if the progress bar already
|
||||||
|
// exists and is hidden (display: none).
|
||||||
|
// Reset the progress bar to it's initial (indeterminite) state
|
||||||
|
// and show it.
|
||||||
|
//
|
||||||
|
// Shorthand:
|
||||||
|
// resetProgressBar(name)
|
||||||
|
//
|
||||||
function progressBar(name, container, close, hide_timeout){
|
function progressBar(name, container, close, hide_timeout){
|
||||||
container = container == null
|
container = container == null
|
||||||
? getProgressContainer()
|
? getProgressContainer()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user