quarkd
Version:
Mobile UI Components built on Web Components.
45 lines (44 loc) • 1.38 kB
TypeScript
import { QuarkElement } from "quarkc";
interface Option {
name: string;
icon: string;
}
export interface Props {
options: Option[];
titleColor?: string;
titleFontSize?: number;
cancelColor?: string;
cancelFontSize?: number;
select: (index: number, action: Option) => void;
cancel?: () => void;
close?: () => void;
zIndex?: number;
}
declare class QuarkShareSheet extends QuarkElement {
open: boolean;
wrap: any;
options: Option[];
titleColor?: string;
titleFontSize?: number;
cancelColor?: string;
cancelFontSize?: number;
zIndex: number;
select: (index: number, action: Option) => 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: Option) => void;
handleContainerClick(ev: PointerEvent): void;
handleCancelClick: () => void;
renderOptions: () => any[];
getMargin: () => number;
render(): any;
}
export default function (params: Props): QuarkShareSheet;
export {};