1.0.8 • Published 10 years ago

haib-waiting-dialog v1.0.8

Weekly downloads
1
License
ISC
Repository
github
Last release
10 years ago

Waiting Dialog

A modal dialog to be used while a web application is processing.

Example usage:

var WaitingDialog = require("haib-waiting-dialog");
 
WaitingDialog.show({
    title: "HAIB",
    message: "Loading...",
    delayInMilliseconds: 500
});
 
// After processing is complete
WaitingDialog.hide();

WaitingDialog.show(options)

Shows the waiting dialog

options.title - text in the header of the waiting dialog

options.message - text in the body of the waiting dialog

options.delayInMilliseconds - length of time to wait before showing the waiting dialog; calling WaitingDialog.hide() before the delay interval is met will cancel the showing of the dialog

options.requestList - array of requests to reject/abort if 'Cancel' is clicked; if this array is empty, the 'Cancel' button will be disabled

WaitingDialog.hide()

Hides/cancels the waiting dialog

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago