DetailItem#
- class omni.kit.browser.asset.model.DetailItem(name: str, url: str, thumbnail: str = None)#
Bases:
BaseItemA single AbstractItem item that represents a single detail item. :param name: detail name :type name: str :param url: detail url :type url: str :param thumbnail: detail thumbnail url :type thumbnail: str
Methods
Attributes
- __init__(self: omni.ui._ui.AbstractItem) None#
- filter(filter_words: List[str] | None) bool#
Filters the detail item based on the provided filter words.
- Parameters:
filter_words (Optional[List[str]]) – A list of strings to filter detail items; None means filtering nothing.
- Returns:
True if the detail item passes the filter, otherwise False.
- Return type:
bool
- property thumbnail: str#
Gets the thumbnail of the detail item.
- Returns:
The thumbnail URL of the detail item.
- Return type:
str
- property url: str#
Gets the url of the detail item.
- Returns:
The URL of the detail item.
- Return type:
str