ExtensionToggle

class omni.kit.window.extensions.ext_components.ExtensionToggle(item: ExtensionCommonInfo, with_label=False, show_install_button=True, refresh_cb=None)

Bases: object

A widget to toggle the state of an extension.

This UI component is part of the extension management system, allowing users to install, enable, or disable extensions. It can also optionally display a label to indicate the current state of the extension.

Parameters
  • item (ExtensionCommonInfo) – The extension item to be managed.

  • with_label (bool) – Whether to display the label next to the toggle.

  • show_install_button (bool) – Whether to show the install button for non-local extensions.

  • refresh_cb (Callable) – Optional callback to invoke when the extension state changes.

Methods

__init__(item[, with_label, ...])

Initializes the extension toggle widget with various UI elements based on the extension's state and properties.

__init__(item: ExtensionCommonInfo, with_label=False, show_install_button=True, refresh_cb=None)

Initializes the extension toggle widget with various UI elements based on the extension’s state and properties.