@ibsheet/loader
Version:
Dynamically load support module for IBSheet
14 lines (13 loc) • 695 B
TypeScript
export interface DomAppendOptions {
id: string;
url: string;
target?: string;
}
export declare function documentReady(callback: (evt?: Event) => void): any;
export declare function createLinkElement(data: DomAppendOptions): HTMLLinkElement;
export declare function createScriptElement(data: DomAppendOptions): HTMLScriptElement;
export declare function existsElementById(id: string): boolean;
export declare function appendCss(data: DomAppendOptions): boolean;
export declare function appendJs(data: DomAppendOptions): boolean;
export declare function removeElemById(id: string): HTMLElement | undefined;
export declare function getElementsByTagName(tagName: string): HTMLElement[];