wdpapi
Version:
51WORLD WdpApi is a set of programming interfaces developed by JavaScript that is responsible for negotiating between web pages and cloud rendering platforms. Supported by 51Cloud rendering platform, it enables the users to create any HTML5 UI element on
48 lines (47 loc) • 1.25 kB
TypeScript
import { UICore } from '../core/ui-core';
import { IwindowStyleType } from '../interface/window';
import { IwindowUIContentType } from '../interface/window-ui';
/**
* @public
* @class WindowUI
* @extends UICore
*/
declare class WindowUI extends UICore {
private iframeDom;
private windowUIContent;
/**
* @constructor
*/
constructor(opt: {
windowUIContent: IwindowUIContentType;
windowStyle: IwindowStyleType;
});
get iframe(): HTMLIFrameElement | null;
GetIframe(): HTMLIFrameElement | null;
get url(): string;
set url(url: string);
GetUrl(): string;
SetUrl(url: string): void;
get content(): string;
set content(content: string);
GetContent(): string;
SetContent(content: string): void;
/**
* @private
* @function generateContent
* @param {IwindowUIContentType} opt
* @returns {void}
*/
private generateContent;
/**
* @public
* @function Update
* @param {{windowUIContent?: IwindowUIContentType, windowStyle?: IwindowStyleType}} opt
* @returns {void}
*/
Update(opt: {
windowUIContent?: IwindowUIContentType;
windowStyle?: IwindowStyleType;
}): void;
}
export default WindowUI;