quarkd
Version:
Mobile UI Components built on Web Components.
49 lines (48 loc) • 1.5 kB
TypeScript
import { QuarkElement } from "quarkc";
interface Action {
name: string;
color?: string;
fontSize?: number;
}
export interface Props {
title?: string;
actions: Action[];
cancelText?: string;
titleColor?: string;
titleFontSize?: number;
cancelTextColor?: string;
cancelTextFontSize?: number;
select: (index: number, action: Action) => void;
cancel?: () => void;
close?: () => void;
zIndex?: number;
}
declare class QuarkActionSheet extends QuarkElement {
open: boolean;
wrap: any;
title: string | undefined;
actions: Action[];
cancelText?: string;
titleColor?: string;
titleFontSize?: number;
cancelTextColor?: string;
cancelTextFontSize?: number;
zIndex: number;
select: (index: number, action: Action) => void;
cancel: () => void;
close: () => void;
componentDidMount(): void;
shouldComponentUpdate(propName: string, oldValue: string | boolean, newValue: string | boolean): boolean;
componentDidUpdate(propName: string, oldValue: string, newValue: string): void;
componentWillUnmount(): void;
handleHostClick(): void;
handleClick: () => void;
handleTransitionend(ev: TransitionEvent): void;
handleActionClick: (index: number, action: Action) => void;
handleContainerClick(ev: PointerEvent): void;
handleCancelClick: () => void;
renderActions: () => any[];
render(): any;
}
export default function (params: Props): QuarkActionSheet;
export {};