Canvas Toolkit
← Class index

CTableWidgetItem

Widgets

Implements the table widget item widget.

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

Declared members

constructor(data?: unknown);

Creates a new instance.

text(): string;

Provides text behavior.

setText(text: string): void;

Sets the text.

data(): unknown;

Returns the value stored by the item.

setData(data: unknown): void;

Sets the value stored by the item.

isEditable(): boolean;

Returns whether the item can be edited.

setEditable(editable?: boolean): void;

Sets whether the item can be edited.