quarkd
Version:
Mobile UI Components built on Web Components.
54 lines (53 loc) • 1.47 kB
TypeScript
import { QuarkElement } from "quarkc";
import "../picker";
import "@quarkd/icons/lib/close";
import { SelectColumn } from ".";
import { FilterType, FormatterType } from "./DatePicker";
declare type TimeType = "time";
declare class QuarkTimePicker extends QuarkElement {
open: boolean;
value: string | null;
type: TimeType;
title: string;
minhour: number;
maxhour: number;
minminute: number;
maxminute: number;
showtoolbar: boolean;
confirmbuttontext: string;
cancelbuttontext: string;
forbidmaskclick: boolean;
pickerRef: any;
originColumns: {
defaultIndex: number;
type: string;
values: string[];
}[];
columns: {
defaultIndex: number;
type: string;
values: string[];
}[];
currentTime: string | null;
formatter: FormatterType;
filter: FilterType;
formatValue(value: any): string;
calcRanges(): {
type: string;
range: number[];
}[];
setColumns(): void;
updateInnerValue(detail: any): void;
onClose: () => void;
confirm: () => void;
onChange: ({ detail }: {
detail: any;
}) => void;
componentDidMount(): void;
getValues(): SelectColumn[];
setValue(value: string): void;
setFormatter(formatter: (type: string, value: string) => string): void;
setFilter(filter: (type: string, values: string[]) => string[]): void;
render(): any;
}
export default QuarkTimePicker;