UNPKG

@docsvision/webclient

Version:

Type definitions for DocsVision WebClient scripts and extensions.

32 lines (31 loc) 1.52 kB
/// <reference types="react" /> import { EditPopover } from "@docsvision/webclient/Helpers/PopoverHelpers/EditPopover/EditPopover"; import { ComboBoxParams } from "@docsvision/webclient/Platform/ComboBox"; import { IComboBoxItem } from "@docsvision/webclient/Platform/IComboBoxItem"; import { IComboBoxVariant } from "@docsvision/webclient/Platform/IComboBoxVariant"; import { InputBasedControlImpl, InputBasedControlState } from "@docsvision/webclient/System/InputBasedControlImpl"; /** @internal */ export interface IComboBoxState extends ComboBoxParams, InputBasedControlState<IComboBoxVariant> { items: IComboBoxItem[]; } export interface ComboBoxState extends IComboBoxState { } /** @internal */ export declare type ComboBoxImplState = IComboBoxState; /** * @internal * Control is not completed. */ export declare class ComboBoxImpl extends InputBasedControlImpl<IComboBoxVariant, ComboBoxParams, IComboBoxState> { constructor(props: ComboBoxParams, state: IComboBoxState); protected loadItems(variants: IComboBoxVariant[]): void; set variants(variants: IComboBoxVariant[]); protected getCssClass(): string; protected initEditPopover(popover: EditPopover): void; protected onValueBoxClick(): void; protected renderEditPopover(popover: EditPopover): null; protected onItemClick(item: IComboBoxItem): void; protected renderInputWithPlaceholder(): JSX.Element; protected getTextValue(): string; protected renderInto(props: unknown, container: HTMLElement): void; }