UNPKG

jcore-ui

Version:

jcore-ui - components for building an interface

45 lines 1.17 kB
import Component, { IComponent, IComponentOn, IComponentOptions, IComponentSelector } from "../core/Component"; import { JDom } from "../core/JDom"; interface IModalSelector extends IComponentSelector { overlay: string; content: string; close: string; btnTarget: string; } interface IModalOptions extends IComponentOptions { adaptive?: boolean; children?: HTMLElement[]; } interface IModalOn extends IComponentOn { } interface IModalElements { $btnTarget?: JDom; $container?: JDom; } interface IModal extends IComponent { selectors?: IModalSelector; options?: IModalOptions; on?: IModalOn; elements?: IModalElements; } interface Modal { selectors: IModalSelector; $overlay: JDom; $close: JDom; $btnTarget: JDom; $container?: JDom; options: IModalOptions; on: IModalOn; props: IModal; isRender: boolean; } declare class Modal extends Component { constructor(props?: IModal); mount(): void; addEvents(): void; unmount(): void; render(): void; destroy(): void; } export default Modal; //# sourceMappingURL=Modal.d.ts.map