UNPKG

ajsfw

Version:
30 lines (29 loc) 1.69 kB
import * as resources from "ajsfw/resources"; import { IVisualComponent } from "./IVisualComponent"; import { IVisualComponentCollection } from "./IVisualComponentCollection"; import { ITemplateManager } from "./ITemplateManager"; export declare class Template { protected _resourceManager: resources.IResourceManager; protected _templateManager: ITemplateManager; protected _name: string; readonly name: string; protected _storageType: resources.StorageType; readonly storageType: resources.StorageType; protected _cachePolicy: resources.CachePolicy; readonly cachePolicy: resources.CachePolicy; protected _loadingPreference: resources.LoadingPreference; readonly loadingPreference: resources.LoadingPreference; protected _styleSheetsUrls: string[]; readonly styleSheetsUrls: string[]; protected _styleSheetsLoaded: boolean; protected _styleSheets: string[]; readonly styleSheets: string[]; protected _template: Document; readonly template: Document; protected _visualComponents: IVisualComponentCollection; readonly visualComponents: IVisualComponentCollection; constructor(resourceManager: resources.IResourceManager, templateManager: ITemplateManager, templateResource: resources.IResource, storageType: resources.StorageType, cachePolicy: resources.CachePolicy, loadingPreference: resources.LoadingPreference); loadStyleSheets(): Promise<void>; protected _walkHTMLTree(element: HTMLElement, parentComponent: IVisualComponent, elementProcessor: (element: HTMLElement, parentComponent: IVisualComponent) => IVisualComponent): void; protected _getTemplateData(): void; }