@instawork/design-system
Version:
The design system for Instawork's web apps
12 lines (11 loc) • 585 B
TypeScript
import { JQueryComponentPlugin } from './custom-component-types';
/**
* Calls {@link CustomComponent.loadPlugin} on each of the specified components, and initializes any
* available plugins on the document's <body> element after page load.
*/
export declare function initComponents(...components: JQueryComponentPlugin[]): void;
/**
* Calls {@link CustomComponent.loadPlugin} on each of the specified components, and immediately initializes
* any available plugins on $root.
*/
export declare function initComponents($root: JQuery, ...components: JQueryComponentPlugin[]): void;