new CustomButton()
Creates a new instance of CustomButton.
Properties:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
properties |
ItemProperties | An object that contains the properties of the CustomButton.
Properties
|
Example
const testButton = new instance.UI.Components.CustomButton({
label: 'test',
title: 'this is a test button',
onClick: () => console.log('button clicked!'),
img: 'icon-save',
});