UNPKG

quarkd

Version:

Mobile UI Components built on Web Components.

64 lines (63 loc) 1.71 kB
import { QuarkElement } from "quarkc"; import "../button"; import "@quarkd/icons/lib/close"; import "../overlay"; interface DialogParams { title?: string; content?: string; oktext?: string; canceltext?: string; zindex?: number; autoclose?: boolean; notitle?: boolean; nofooter?: boolean; type?: "modal" | "confirm"; hideclose?: boolean; maskclosable?: boolean; btnvertical?: boolean; } export interface Props extends DialogParams { open: boolean; } export interface CustomEvent { confirm: () => void; cancel: () => void; close: () => void; } declare class QuarkDialog extends QuarkElement { zindex: string; title: string; notitle: boolean; content: string | HTMLElement; oktext: string; canceltext: string; type: string; open: boolean; autoclose: boolean; nofooter: boolean; hideclose: boolean; maskclosable: boolean; btnvertical: boolean; btnActive: any; dRemove: boolean; close: any; cancel: any; confirm: any; hasChangeBodyStyle: boolean; bodyRef: any; componentDidMount(): void; componentWillUnmount(): void; shouldComponentUpdate(propName: string, oldValue: string, newValue: string): boolean; componentDidUpdate(propName: string, oldValue: string, newValue: string): void; closeIconClick: () => void; cancelClick: () => void; okClick: () => void; hide(): void; slotChangeEvent: () => void; transitionendChange: () => void; renderBtnVertical: () => any; handleClickMask: () => void; render(): any; } export default function Dialog(params: DialogParams & CustomEvent): QuarkDialog; export { QuarkDialog };