CategoryItem#
- class omni.kit.browser.core.CategoryItem(
- name,
- count=0,
- parent: BaseItem | None = None,
- is_last_child: bool | None = False,
Bases:
BaseItem
A single AbstractItem item that represents a single category. :param name: catetory name :type name: str :param count: count of detail items in this category. Default is 0. :type count: int
Methods
Attributes
- __init__(self: omni.ui._ui.AbstractItem) None #
- filter(filter_words: List[str] | None) bool #
Filter detail item. Return True if filtered otherwise False.
- Parameters:
filter_words (Optional[List[str]]) – A string list to filter detail items. None means filtering nothing.
- Returns:
True if the category item matches the filter, False otherwise.
- Return type:
bool