Debian Codegraph @

jupyter-widgets-html-manager/lib/libembed-amd.d.ts

raw
1 /**
2 * Load an amd module locally and fall back to specified CDN if unavailable.
3 *
4 * @param moduleName The name of the module to load..
5 * @param version The semver range for the module, if loaded from a CDN.
6 *
7 * By default, the CDN service used is jsDelivr. However, this default can be
8 * overridden by specifying another URL via the HTML attribute
9 * "data-jupyter-widgets-cdn" on a script tag of the page.
10 *
11 * The semver range is only used with the CDN.
12 */
13 export declare function requireLoader(moduleName: string, moduleVersion: string): Promise<any>;
14 /**
15 * Render widgets in a given element.
16 *
17 * @param element (default document.documentElement) The element containing widget state and views.
18 * @param loader (default requireLoader) The function used to look up the modules containing
19 * the widgets' models and views classes. (The default loader looks them up on jsDelivr)
20 */
21 export declare function renderWidgets(element?: HTMLElement, loader?: (moduleName: string, moduleVersion: string) => Promise<any>): void;
22 //# sourceMappingURL=libembed-amd.d.ts.map