PageModel

class omni.kit.window.preferences.scripts.preference_builder.PageModel(page_list: List[str])

Bases: AbstractItemModel

Methods

__init__(self)

Constructs AbstractItemModel.

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.

get_item_value_model_count(item)

The number of columns

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

Constructs AbstractItemModel.

`kwargsdict`

See below

### Keyword Arguments:

get_item_children(self: omni.ui._ui.AbstractItemModel, parentItem: omni.ui._ui.AbstractItem = None) List[omni.ui._ui.AbstractItem]

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) omni.ui._ui.AbstractValueModel

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.

get_item_value_model_count(item: PageItem) int

The number of columns