Class: ToggleElementButton

UI.Components. ToggleElementButton


new ToggleElementButton(properties)

Creates a new instance of ToggleElementButton.
Parameters:
Name Type Description
properties Object An object that contains the properties of the ToggleElementButton.
Properties
Name Type Argument Description
dataElement string <optional>
The dataElement of toggle button.
toggleElement string The dataElement of the element to toggle.
title string <optional>
The tooltip text to be displayed when hovering over the toggle button.
label string <optional>
The label of the button.
img string <optional>
The title of the button which appears in a tooltip.
Example
const toggleButton = new instance.UI.Components.ToggleElementButton({
  label: 'Toggle',
  title: 'Toggle the visibility of the element',
  img: 'icon-save',
  toggleElement: 'elementToToggle',
});

Extends