AbstractItemDelegate

class omni.ui.AbstractItemDelegate

Bases: pybind11_object

AbstractItemDelegate is used to generate widgets that display and edit data items from a model.

Methods

__init__(self)

Constructs AbstractItemDelegate.

build_branch(self, model[, item, column_id, ...])

This pure abstract method must be reimplemented to generate custom collapse/expand button.

build_header(self[, column_id])

This pure abstract method must be reimplemented to generate custom widgets for the header table.

build_widget(self, model[, item, index, ...])

This pure abstract method must be reimplemented to generate custom widgets for specific item in the model.

__init__(self: omni.ui._ui.AbstractItemDelegate) None

Constructs AbstractItemDelegate.

`kwargsdict`

See below

### Keyword Arguments:

build_branch(self: omni.ui._ui.AbstractItemDelegate, model: omni.ui._ui.AbstractItemModel, item: omni.ui._ui.AbstractItem = None, column_id: int = 0, level: int = 0, expanded: bool = False) None

This pure abstract method must be reimplemented to generate custom collapse/expand button.

build_header(self: omni.ui._ui.AbstractItemDelegate, column_id: int = 0) None

This pure abstract method must be reimplemented to generate custom widgets for the header table.

build_widget(self: omni.ui._ui.AbstractItemDelegate, model: omni.ui._ui.AbstractItemModel, item: omni.ui._ui.AbstractItem = None, index: int = 0, level: int = 0, expanded: bool = False) None

This pure abstract method must be reimplemented to generate custom widgets for specific item in the model.