Skip to main content

addButton

addButton(buttonParams: ProjectButtonParameters): ProjectButtonHandle

Parameters

NameTypeDescription
buttonParamsProjectButtonParametersButton parameters

Description

Remove default buttons and add new button with customized appearance and behavior. Buttons are added to 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();
}
});