quarkd
Version:
Mobile UI Components built on Web Components.
38 lines (37 loc) • 1.08 kB
TypeScript
import { QuarkElement } from "quarkc";
import "@quarkd/icons/lib/close";
export interface Props {
position?: "top" | "bottom" | "left" | "right";
round?: boolean;
open: boolean;
closeable?: boolean;
forbidmaskclick?: boolean;
safearea?: boolean;
zindex?: number;
}
export interface CustomEvent {
clickoverlay: () => void;
close: () => void;
closed: () => void;
opened: () => void;
}
declare class QuarkPopup extends QuarkElement {
open: boolean;
forbidmaskclick: boolean;
safearea: boolean;
round: boolean;
closeable: boolean;
position: string;
zindex?: number | string;
scrollid?: string;
wrap: any;
componentDidMount(): void;
shouldComponentUpdate(propName: string, oldValue: string | boolean, newValue: string | boolean): boolean;
componentDidUpdate(propName: string, oldValue: string, newValue: string): void;
componentWillUnmount(): void;
dispatchClose(): void;
handleCloseBtnClick: () => void;
handleClick: () => void;
render(): any;
}
export default QuarkPopup;