mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
44 lines
878 B
TypeScript
44 lines
878 B
TypeScript
import BSTreeViewNodeState from "./BSTreeViewNodeState";
|
|
import BSTreeViewOptions from "./BSTreeViewOptions";
|
|
|
|
export default class BSTreeViewNode {
|
|
text: string;
|
|
icon: string;
|
|
image: string;
|
|
selectedIcon: string;
|
|
color: string;
|
|
backColor: string;
|
|
iconColor: string;
|
|
iconBackground: string;
|
|
selectable: boolean;
|
|
checkable: boolean;
|
|
state: BSTreeViewNodeState;
|
|
tags: string[];
|
|
dataAttr: object;
|
|
id: string;
|
|
class: string;
|
|
hideCheckbox: boolean;
|
|
nodes: BSTreeViewNode[];
|
|
tooltip: string;
|
|
|
|
lazyLoad: boolean;
|
|
tagsClass: string;
|
|
|
|
|
|
el: HTMLElement;
|
|
|
|
searchResult: boolean;
|
|
|
|
|
|
level: number;
|
|
index: number;
|
|
nodeId: string;
|
|
parentId: string
|
|
|
|
constructor(options: BSTreeViewNode|object = null) {
|
|
if(options) {
|
|
Object.assign(this, options);
|
|
}
|
|
}
|
|
}
|
|
|