addButton
addButton(buttonParams: ProjectButtonParameters): ProjectButtonHandle
Parameters
Name | Type | Description |
---|---|---|
buttonParams | ProjectButtonParameters | Button parameters |
Description
Remove default buttons and add new button with customized appearance and behavior. Buttons are added to the 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();
}
});