I develop a custom node which connects to a sensor which is locally connected via USB. The node reads the sensor values and sends them as outputs. Now I want the user to be able to deactivate the node so no values are read and sent. I thought I use the same mechanism as the debug nodes provides: this little button at the side of the node to toggle the active state.
The problem is that the debug node has the button on the right side, but I need it to be on the left side, since my node is an input node. Now of the input nodes the inject node also has such a button, but it is not used to toggle the active state and also does not "collapse" as the button on the debug node does.
So my question is: is it possible to create a toggle button on the left side of a node which also "collapses"?
A screenshots for illustration.
This is the node with property align: "right". The button does collapse, if I click it, but the button and the icon are on the wrong side.
So what I need is the node as on the screenshot, but with the button and the icon on the left side. Does anyone know how to achieve this?