UNPKG

quarkd

Version:

Mobile UI Components built on Web Components.

62 lines (61 loc) 1.54 kB
import { QuarkElement } from "quarkc"; import "../popup"; import "../cell"; import "../../../quark-icons/lib/success"; import { IDropdownMenuProps } from "../dropdownmenu"; export declare type DropdownItemProps = { value?: string; title?: string; disabled?: boolean; }; export declare type DropdownItemOption = { text: string; value: string; }; export interface CustomEvent { change: (e: { detail: { value: string; }; }) => void; open: () => void; close: () => void; } declare class QuarkDropdownItem extends QuarkElement { value: string; title: string; disabled: boolean; root: any; titleRef: any; props: IDropdownMenuProps; showPopup: boolean; currentValue: string; options: DropdownItemOption[]; selfNodes: any[]; contentSlotRef: any; clickAway: (e: any) => void; componentDidMount(): void; componentWillUnmount(): void; setOptions: (options: DropdownItemOption[]) => void; setProps: (props: any) => void; renderTitle(): string; onTitleClick: () => void; renderOption: (item: any) => any; toggle: (show?: boolean) => void; onContentSlotChange: () => void; titleCSS: () => { class: string; style: any; }; contentCSS: () => { wrapperStyle: any; contentStyle: any; maskStyle?: undefined; } | { wrapperStyle: any; contentStyle: any; maskStyle: any; }; render(): any; } export default QuarkDropdownItem;