@itwin/frontend-devtools
Version:
Debug menu and supporting UI widgets
36 lines • 1.05 kB
TypeScript
/** @packageDocumentation
* @module Controls
*/
/** @alpha */
export type NumericInputHandler = (value: number, input: HTMLInputElement) => void;
/** @alpha */
export interface NumericInputProps {
handler: NumericInputHandler;
id?: string;
parent?: HTMLElement;
value: number;
display?: "inline" | "none" | "block";
disabled?: boolean;
min?: number;
max?: number;
step?: number;
tooltip?: string;
parseAsFloat?: true;
}
/** @alpha */
export declare function createNumericInput(props: NumericInputProps, useFloat?: boolean): HTMLInputElement;
/** @alpha */
export interface LabeledNumericInputProps extends NumericInputProps {
name: string;
id: string;
divDisplay?: "block" | "none" | "inline";
}
/** @alpha */
export interface LabeledNumericInput {
input: HTMLInputElement;
div: HTMLDivElement;
label: HTMLLabelElement;
}
/** @alpha */
export declare function createLabeledNumericInput(props: LabeledNumericInputProps): LabeledNumericInput;
//# sourceMappingURL=NumericInput.d.ts.map