UNPKG

quarkd

Version:

Mobile UI Components built on Web Components.

64 lines (63 loc) 1.48 kB
import { QuarkElement } from "quarkc"; import "../popup"; import "../button"; import "@quarkd/icons/lib/close"; export interface PickerColumn { values: string[]; defaultIndex: number; } export interface SelectColumn { value: string; index: number; } export interface Props { open: boolean; title?: string; confirmtext?: string; bottomhidden?: boolean; forbidmaskclick?: boolean; } export interface CustomEvent { close: () => void; confirm: (e: { detail: { value: { value: string; index: number; }[]; }; }) => void; change?: (e: { detail: { value: { value: string; index: number; }[]; }; }) => void; } declare class QuarkPicker extends QuarkElement { open: boolean; forbidmaskclick: boolean; name: string; title: string; confirmtext: string; bottomhidden: boolean; columns: PickerColumn[]; wheels: any[]; values: any[]; wheelWrapper: any; setColumns(columns: PickerColumn[]): void; getValues(needRestore?: boolean): { value: string; index: any; }[]; restorePosition(): void; confirm: () => void; debounce(fn: any, wait: any): () => void; createWheel: (wheelWrapper: any, i: number) => any; renderWheel: () => any[]; popupClose: () => void; render(): any; } export default QuarkPicker;