Class InspectorAction

The InspectorAction class provides the UI representation for the InspectableAction.

Constructors

Properties

Accessors

Methods

Constructors

  • Creates a new inspector action from a method and a content to be shown on the button.

    Parameters

    • name: string

      The action name.

    • action: InspectableAction<any>

      The action method.

    • content: UIContent

      A content to be shown on the button.

    • layout: InspectorFormLayoutSection

      A layout to contain the button.

    • Optionaltooltip: string

      A tooltip to be used on the button.

    Returns InspectorAction

Properties

name: string

Name of the action.

Accessors

  • get isActive(): boolean
  • Activates or deactivates the underlying UI elements.

    Returns boolean

  • set isActive(value): void
  • Parameters

    • value: boolean

    Returns void

  • get isDisabled(): boolean
  • Disables or enables the underlying UI elements. Disabled elements cannot be interacted with and have a faded out appearance.

    Returns boolean

  • set isDisabled(value): void
  • Parameters

    • value: boolean

    Returns void

Methods

  • Returns void