UNPKG

@nodeject/ui-components

Version:

UI library for non-trivial components

23 lines (22 loc) 1.2 kB
export declare function GetNodeKind(nodeKind: number): number; export declare type onAddNode = (nodeId: string, title: string, nodeKind: number) => void; export declare type onRequestNodeMenu = (nodeId: string, nodeKind: number) => void; export interface NodeEvents { onChangeSiblingIndex?(nodeId: string, siblingIndex: number): void; onChangeParent?(nodeId: string, parentId: string): void; onAddChild?(parentId: string, title: string, nodeKind: number): void; onInsertParent?(nodeId: string, title: string, nodeKind: number): void; onAddSiblingBefore?(nodeId: string, title: string, nodeKind: number): void; onAddSiblingAfter?(nodeId: string, title: string, nodeKind: number): void; onRemoveNode?(nodeId: string, title: string, nodeKind: number): void; onRequestNodeMenu?(nodeId: string, nodeKind: number): void; onRequestNodeMoveMenu?(nodeId: string): void; } export interface SelectNodeEvents { onComponentSelected?(nodeId: string): void; onComponentOpenMenu?(nodeId: string): void; onCollapseExpandNode?(nodeId?: string): void; } export interface EditNodeEvents { onTitleEditRequest?(nodeId: string, title: string): void; }