list_model
SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
- class omni.flux.content_viewer.widget.tree_model.Model
Bases:
omni.ui._ui.AbstractItemModel
List model
- __init__(self: omni.ui._ui.AbstractItemModel) None
Constructs AbstractItemModel.
- kwargs : dict
See below
### Keyword Arguments:
- destroy()
- 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
- refresh(items: List[Type[BaseContentItem]])
Refresh the list with those items
- Parameters
items – the items