Canvas Toolkit
← Class index

CListWidgetItem

Widgets

Implements the list widget item widget.

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

Declared members

readonly changed: CSignal<[]>;
constructor(text?: string, icon?: CIcon | null);

Creates a new instance.

icon(): CIcon | null;
setIcon(icon: CIcon | null): void;
text(): string;

Provides text behavior.

setText(text: string): void;

Sets the text.

isEnabled(): boolean;

Returns whether the enabled condition is active.

setEnabled(enabled: boolean): void;

Sets the enabled.