UNPKG

@itwin/frontend-devtools

Version:

Debug menu and supporting UI widgets

33 lines 932 B
/** @packageDocumentation * @module Controls */ /** Wraps an HTML text input field. * @beta */ export interface TextBox { /** The label, if the text box has one. */ label?: HTMLLabelElement; /** The text input element. */ textbox: HTMLInputElement; /** The div containing the text box. */ div: HTMLDivElement; } /** @alpha */ export type TextBoxHandler = (textbox: HTMLInputElement) => void; /** @alpha */ export type TextBoxKeyPressHandler = (textbox: HTMLInputElement, ev: KeyboardEvent) => void; /** @alpha */ export interface TextBoxProps { label?: string; id?: string; parent?: HTMLElement; handler?: TextBoxHandler; keypresshandler?: TextBoxKeyPressHandler; focushandler?: TextBoxHandler; tooltip?: string; inline?: boolean; list?: string; } /** @alpha */ export declare function createTextBox(props: TextBoxProps): TextBox; //# sourceMappingURL=TextBox.d.ts.map