UNPKG

@kelvininc/ui-components

Version:
38 lines (37 loc) 1.54 kB
import { EventEmitter } from '../../stencil-public-runtime'; import { ITreeNodeItem } from '../tree/tree.types'; export declare class KvTreeDropdown { /** (required) The tree hierarchy items to render in this component */ nodes: ITreeNodeItem[]; /** (optional) Defines whether the all tree nodes is loading. */ loading?: boolean; /** (optional) The currently selected node id */ selectedNode?: string; /** (optional) Dictionary that defines whether the tree node is hidden.*/ hiddenNodes?: { [key: string]: boolean; }; /** (optional) Dictionary that defines whether the tree node is expanded or collapsed. Only has visual effect for tree nodes with children.*/ expandedNodes?: { [key: string]: boolean; }; /** (optional) Dictionary that defines whether the tree node is disabled.*/ disabledNodes?: { [key: string]: boolean; }; /** (optional) Dictionary that defines whether the tree node is loading. */ loadingNodes?: { [key: string]: boolean; }; /** (optional) Defines whether the labels should be displayed as tooltip.*/ showTooltip?: boolean; /** (optional) Delay to show tooltip in milliseconds. */ tooltipDelay?: number; /** Emitted when the node expand toggle is clicked */ nodeToggleExpand: EventEmitter<ITreeNodeItem>; /** Emitted when the tree node item is clicked */ nodeClick: EventEmitter<ITreeNodeItem>; private getHighlightedNodes; private getSpotlightedNodes; render(): any; }