SearchResultsItem#
- class omni.kit.widget.search_delegate.SearchResultsItem(
- path: str,
- fields: FileBrowserItemFields,
- is_folder: bool = False,
Bases:
FileBrowserItem
A class representing a search result item in Omni UI file browser.
This class inherits from FileBrowserItem and encapsulates details of a search result item, including its path, metadata fields, and whether it represents a folder.
- Parameters:
path (str) – The path or identifier for the search item.
fields (FileBrowserItemFields) – A collection of metadata fields associated with the search item.
is_folder (bool) – A flag indicating if the search item is a folder.
Methods
__init__
(path, fields[, is_folder])Initializes a new SearchResultsItem instance.
Returns the thumbnail dictionary for this (folder) item.
Attributes
- __init__(
- path: str,
- fields: FileBrowserItemFields,
- is_folder: bool = False,
Initializes a new SearchResultsItem instance.
- async get_custom_thumbnails_for_folder_async() Dict #
Returns the thumbnail dictionary for this (folder) item.
- Returns:
With children url’s as keys, and url’s to thumbnail files as values.
- Return type:
Dict