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
|
Example
const toggleButton = new instance.UI.Components.ToggleElementButton({
label: 'Toggle',
title: 'Toggle the visibility of the element',
img: 'icon-save',
toggleElement: 'elementToToggle',
});