@docsvision/webclient
Version:
Type definitions for DocsVision WebClient scripts and extensions.
24 lines (23 loc) • 1.46 kB
TypeScript
export interface ILegacyRouter {
GetLocation(): string;
getLocationFromRoute(route: string): any;
LoadContent(url: string, requestData: any, contentElement: HTMLElement, showOverlay?: boolean, callback?: Function): void;
LoadMainContent(url: string, requestData: any, showOverlay?: boolean, get?: boolean, callback?: (isError?: boolean) => void): void;
LoadContentFromRoute(cardId: any): Promise<any>;
/**
* Try set main content element.
* @param elem
* @param doneCallback
*/
SetMainContentElement(elem: HTMLElement, doneCallback?: Function, newContentCssClass?: string): Promise<void>;
SetMainContentHtml(html: string, doneCallback?: Function, newContentCssClass?: string): Promise<any>;
PrepareMainContentChange(isClear?: boolean): Promise<any>;
AddMainContentChangingListener(listener: (isClear?: boolean) => Promise<any>): any;
RemoveMainContentChangingListener(listener: (isClear?: boolean) => Promise<any>): any;
/** Calls addEventListener for main content html element. */
AddMainContentEventListener(eventType: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): any;
/** Calls removeEventListener for main content html element. */
RemoveMainContentEventListener(eventType: string, listener?: EventListenerOrEventListenerObject, useCapture?: boolean): any;
LoadCardContent(uri: string): void;
SetTopPanelCardStyle(cardTypeWeb: any): void;
}