Canvas Toolkit
← Class index

CNumberItemDelegate

Widgets · extends CAbstractItemDelegate

Optional arithmetic editor for item views. Writes only the numeric result; formulas are local to an editing session and are not stored in the model.

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

Declared members

decimals(): number;
setDecimals(decimals: number): void;

Maximum display precision; the model value is not rounded.

createEditor(parent: CWidget, _index: CModelIndex): CWidget;
setEditorData(editor: CWidget, index: CModelIndex): void;
setModelData(editor: CWidget, model: CAbstractItemModel, index: CModelIndex): void;