new CustomButton(options)
Creates a new instance of CustomButton.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | 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',
});