Skip to main content

addButton

addButton(buttonParams: ProjectButtonParameters): ProjectButtonHandle

Parameters

Parameters

NameTypeDescription
buttonParamsProjectButtonParametersButton parameters

Description

This function allows you to replace default buttons and add custom buttons with specialized appearance and behavior. The buttons are displayed in the file tab:

file tab

Example

var newButton = NetDecor.v3.project.addButton({
label: { en:"New", pl: "Nowy" },
icon: "New",
shortcut:{
flags:["LCtrl"],
key:"N"
},
onclick: function () {
NetDecor.v3.project.createNewProject();
}
});