Usage
Typescript Import Format
//This namespace exports multiple static methods or members. To import
import * as Bootstrap from "ojs/ojbootstrap";
//Now you can access the methods as Bootstrap.methodName and so on
For additional information visit:
Contains utility functions intended to be used during application bootstrapping
Methods
-
(static) whenDocumentReady : {Promise<void>}
-
Returns a Promise that is resolved when document.readyState is no longer 'loading' i.e. when it is 'interactive' or 'complete'. This may be used to delay an application's initial applyBindings call until DOM elements are accessible.
Returns:
a Promise that is resolved when document.readyState is no longer 'loading'
- Type
- Promise<void>