Class: CustomButton

UI.Components. CustomButton

new CustomButton()

Creates a new instance of CustomButton.
Name Type Description
properties ItemProperties An object that contains the properties of the CustomButton.
Name Type Argument Description
label string <optional>
The label of the button.
img string <optional>
The icon of the button.
onClick function <optional>
The function that is called when the button is clicked.
isActive boolean <optional>
Whether the button shows an active state or not.
const testButton = new instance.UI.Components.CustomButton({
  label: 'test',
  title: 'this is a test button',
  onClick: () => console.log('button clicked!'),
  img: 'icon-save',