promise()
BProgress.promise() method
The promise() method integrates BProgress with a "promise-like" object (e.g., jQuery promises), automatically starting the progress bar and completing it when the promise is resolved.
Usage
Typing
Parameters
| Name | Type | Description |
|---|---|---|
| $promise | any | A jQuery-like promise object (with an .always() callback). |