import { OverlayBase, OverlayConfig, OverlayInstance } from "./Overlay"; import { BooleanProp, StringProp, StyleProp, ClassProp } from "../../ui/Prop"; import { RenderingContext } from "../../ui/RenderingContext"; export interface WindowConfig extends OverlayConfig { /** Text to be displayed in the header. */ title?: StringProp; /** Controls the close button visibility. Defaults to `true`. */ closable?: BooleanProp; /** A custom style which will be applied to the body. */ bodyStyle?: StyleProp; /** A custom style which will be applied to the header. */ headerStyle?: StyleProp; /** A custom style which will be applied to the footer. */ footerStyle?: StyleProp; /** Base CSS class to be applied to the field. Defaults to `window`. */ baseClass?: string; /** Additional CSS class to be applied to the section body. */ bodyClass?: ClassProp; /** Set to `true` to enable resizing. */ resizable?: boolean; /** Set to `true` to automatically focus the field, after it renders for the first time. */ autoFocus?: boolean; /** Set to `false` to prevent the window itself to be focusable. Default value is true.*/ focusable?: boolean; /** Set to `true` to disable moving the window by dragging the header. */ fixed?: boolean; /** Set to `true` to add default padding to the window body. */ pad?: boolean; /** Optional header widget. */ header?: any; /** Optional footer widget. */ footer?: any; /** Custom event handler for closeable. */ closeable?: BooleanProp; } export declare class WindowInstance extends OverlayInstance { headerEl?: HTMLElement; footerEl?: HTMLElement; bodyEl?: HTMLElement; containerEl?: HTMLElement; } export declare class Window extends OverlayBase { closable?: BooleanProp; closeable?: BooleanProp; resizable?: boolean; fixed?: boolean; autoFocus?: boolean; focusable?: boolean; pad?: boolean; bodyStyle?: StyleProp; headerStyle?: StyleProp; footerStyle?: StyleProp; bodyClass?: ClassProp; title?: StringProp; header?: any; footer?: any; baseClass: string; init(): void; declareData(...args: any): void; initHelpers(...args: any): void; exploreCleanup(context: RenderingContext, instance: WindowInstance): void; renderHeader(context: RenderingContext, instance: WindowInstance, key: string): any[]; renderFooter(context: RenderingContext, instance: WindowInstance, key: string): any; render(context: RenderingContext, instance: WindowInstance, key: string): any; } //# sourceMappingURL=Window.d.ts.map