1.0.8 • Published 8 years ago
haib-waiting-dialog v1.0.8
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