1.0.8 • Published 8 years ago

haib-waiting-dialog v1.0.8

Weekly downloads
1
License
ISC
Repository
github
Last release
8 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

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago