Canvas Toolkit
← Class index

CTreeWidgetItem

Widgets

Implements the tree widget item widget.

import { CTreeWidgetItem } from "canvas-toolkit-lib";

Declared members

constructor(texts?: string[]);

Creates a new instance.

text(column: number): string;

Provides text behavior.

setText(column: number, text: string): void;

Sets the text.

columnCount(): number;

Provides column count behavior.

parent(): CTreeWidgetItem | null;

Provides parent behavior.

child(index: number): CTreeWidgetItem | null;

Provides child behavior.

childCount(): number;

Provides child count behavior.

indexOfChild(child: CTreeWidgetItem): number;

Provides index of child behavior.

addChild(child: CTreeWidgetItem): void;

Adds child.

insertChild(index: number, child: CTreeWidgetItem): void;

Inserts child.

removeChild(child: CTreeWidgetItem): void;

Removes child.

takeChild(index: number): CTreeWidgetItem | null;

Removes and returns child.