Open
Description
button: {
toggle: "active",
enabled: function() {
return !this.changed
},
onclick: function() { }
}
Notes:
toggle
identifies this should be a toggle switch (as used by Debug node). Value is a string that identifies the node property whose value should be toggled betweentrue
andfalse
.enabled
is a function that can be used to determine if the button is active or not - cannot be used withtoggle
- new for 0.17.onclick
is a function that is called when the button is clicked. This function is called regardless of what theenabled
function may have returned; in other words, even ifenabled
returnedfalse
, this function will still be called when the button is clicked. This allows the node to display a custom notification to tell the user why the button is not enabled.
Metadata
Metadata
Assignees
Labels
No labels