StyleComboItemModel#
- class omni.kit.window.inspector.style.style_model.StyleComboItemModel(class_obj: Callable, default_value: int)#
Bases:
AbstractItemModelModel for a combo box - for each setting we have a dictionary of key, values
Methods
__init__(self)Constructs AbstractItemModel.
get_current_value()get_item_children(self[, parentItem])Returns the vector of items that are nested to the given parent item.
get_item_value_model(self[, item, column_id])Get the value model associated with this item.
- __init__(
- self: omni.ui._ui.AbstractItemModel,
Constructs AbstractItemModel.
- `kwargsdict`
See below
### Keyword Arguments:
- get_item_children(
- self: omni.ui._ui.AbstractItemModel,
- parentItem: omni.ui._ui.AbstractItem = None,
Returns the vector of items that are nested to the given parent item.
### Arguments:
- `id :`
The item to request children from. If it’s null, the children of root will be returned.
- get_item_value_model(
- self: omni.ui._ui.AbstractItemModel,
- item: omni.ui._ui.AbstractItem = None,
- column_id: int = 0,
Get the value model associated with this item.
### Arguments:
- `item :`
The item to request the value model from. If it’s null, the root value model will be returned.
- `index :`
The column number to get the value model.