Constructor
                        
                        
    
    # new DuButton()
Properties:
| Name | Type | Description | 
|---|---|---|
| helpLink | string | A URL to a help page, shown on shift click on the button. | 
| image | Image | The scriptui object representing the image. | 
| label | StaticText | The label | 
| optionsPopup | DuPopup | A popup for . | 
| optionsPanel | Group | The ScriptUI Group where to add the options (child of the popup). | 
| onClick | DuButton~onClick | The function to execute when the button is clicked | 
| onAltClick | DuButton~onAltClick | The function to execute when the button is Alt + clicked | 
| onCtrlClick | DuButton~onCtrlClick | The function to execute when the button is Ctrl + clicked | 
| onCtrlAltClick | DuButton~onCtrlAltClick | The function to execute when the button is Ctrl + Alt + clicked | 
| onOptions | DuButton~onOptions | The function to execute when the options are called (Shift+CLick or click on the options button) | 
Methods
# static setBackgroundColor(color)
        Changes the background color of the button.
    
    
    Parameters:
| Name | Type | Description | 
|---|---|---|
| color | DuColor | the color. | 
# static setHelpTip(helptip)
        Changes the helptip of the button.
    
    
    Parameters:
| Name | Type | Description | 
|---|---|---|
| helptip | string | the helptip. | 
# static setImage(image)
        Changes the image of the button.
    
    
    Parameters:
| Name | Type | Description | 
|---|---|---|
| image | File|DuBInary | the image. Changing the image does not work with PNG as strings, a File must be passed. | 
# static setText(text)
        Changes the text of the button.
    
    
    Parameters:
| Name | Type | Description | 
|---|---|---|
| text | string | the text. | 
Type Definitions
# onAltClick()
        The function to execute when the button is Alt + clicked.
    
    
# onClick()
        The function to execute when the button is clicked.
    
    
# onCtrlAltClick()
        The function to execute when the button is Ctrl + Alt + clicked.
    
    
# onCtrlClick()
        The function to execute when the button is Ctrl + clicked.
    
    
# onOptions(showUI)
        The function to execute when the options are called (Shift+CLick or click on the options button).
Use the
    
    Use the
showUI parameter to build the options when the button is clicked without showing any UI.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| showUI | Boolean | This is set to false when the button is clicked: use this parameter to build the options without showing any UI when needed on all button clicks. |