Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

buttons

Marcel Kloubert edited this page Apr 10, 2018 · 4 revisions

Home >> Settings >> Buttons

Buttons

Defines one or more global buttons, which execute a command.

The following example enables a button, which executes the command extension.deploy.reloaded.pullPackgeFiles with the arguments My PHP files (package name) and My FTP server (target name).

{
    "deploy.reloaded": {
        "packages": [
            {
                "name": "My PHP files",
                
                "files": [
                    "**/*.php"
                ]
            }
        ],
        
        "targets": [
            {
                "type": "ftp",
                "name": "My FTP server"
            }
        ],

        "buttons": [
            {
                "text": "Pull PHP files from FTP",
                
                "command": "extension.deploy.reloaded.pullPackgeFiles",
                "arguments": [ "My package", "My FTP server" ]
            }
        ]
    }
}
Name Description
arguments One or more arguments for the underlying command of that button.
color The custom (text) color.
command The custom ID of the underlying command to execute.
enabled Enable button or not. Default: (true)
isRight Put button on the right side or not. Default: (false)
priority The priority.
text* The custom display text.
tooltip* The custom tooltip text.

* supports placeholders

Clone this wiki locally