ColumnMenuModel#
- class omni.kit.widget.stage.ColumnMenuModel(
- enabled: List[str] | None = None,
- accepted: List[str] | None = None,
- **kwargs,
Bases:
AbstractItemModelRepresents the model for available columns.
Methods
__init__(self)Constructs AbstractItemModel.
destroy()drop(target_item, source[, drop_location])Reimplemented from AbstractItemModel.
drop_accepted(target_item, source[, ...])Reimplemented from AbstractItemModel.
Return all the columns in the format
get_drag_mime_data(item)Returns Multipurpose Internet Mail Extensions (MIME) data for be able to drop this item somewhere
get_item_children(item)Returns all the children when the widget asks it.
get_item_value_model(item, column_id)Return value model.
The number of columns
Return the object that will automatically unsubscribe when destroyed.
- __init__(self: omni.ui._ui.AbstractItemModel) → None#
Constructs AbstractItemModel.
- `kwargsdict`
See below
### Keyword Arguments:
- drop(target_item, source, drop_location=-1)#
Reimplemented from AbstractItemModel. Called when dropping something to the item.
- drop_accepted(target_item, source, drop_location=-1)#
Reimplemented from AbstractItemModel. Called to highlight target when drag and drop.
- get_columns() → List[Tuple[str, bool]]#
Return all the columns in the format
`[(“Visibility”, True), (“Type”, False)]`
The first item is the column name, and the second item is a flag that is True if the column is enabled.
- get_drag_mime_data(item)#
Returns Multipurpose Internet Mail Extensions (MIME) data for be able to drop this item somewhere
- get_item_children(item)#
Returns all the children when the widget asks it.
- get_item_value_model(item, column_id)#
Return value model. It’s the object that tracks the specific value. In our case we use ui.SimpleStringModel.
- get_item_value_model_count(item)#
The number of columns
- subscribe_delegate_changed(
- fn: Callable[[List[str]], None],
Return the object that will automatically unsubscribe when destroyed.