UNPKG

@awhere/api

Version:

The awesome aWhere API for JavaScript.

38 lines (37 loc) 1.04 kB
import WidgetBase, { IWidgetBaseProps } from '../WidgetBase'; export declare enum AppId { Account = "account", Drive = "drive", DataStudio = "data-studio", FormStudio = "form-studio", MapStudio = "map-studio", AppStudio = "app-studio", Configuration = "configuration" } export declare enum WidgetEvent { OpenApp = "open-app" } interface IWidgetProps extends IWidgetBaseProps { useHref?: boolean; target?: string; disabledApp?: AppId[]; hiddenApp?: AppId[]; } export default class App extends WidgetBase { private _useHref?; private _target?; private _disabledApp; private _hiddenApp; get useHref(): boolean | undefined; set useHref(v: boolean | undefined); get target(): string | undefined; set target(v: string | undefined); get disabledApp(): AppId[]; set disabledApp(v: AppId[]); get hiddenApp(): AppId[]; set hiddenApp(v: AppId[]); constructor(props: IWidgetProps); build(target: Element): void; destroy(): void; } export {};