User able to add more buttons through the Dashboard

I would like users to be able to add modules or "things" to however many they want. For example, if they have two "things", the Dashboard would look like this:

[{"id":"6ce77478.d07bcc","type":"ui_button","z":"97038f39.5498a","name":"","group":"7b56596.3bcfda8","order":2,"width":"2","height":"1","passthru":false,"label":"thing1","tooltip":"","color":"","bgcolor":"black","icon":"","payload":"thing1","payloadType":"str","topic":"","x":170,"y":540,"wires":[["8df38b15.b6ec08"]]},{"id":"29d0f8d8.5020c8","type":"ui_text","z":"97038f39.5498a","group":"7b56596.3bcfda8","order":3,"width":"4","height":"1","name":"","label":"Forward, Backward","format":"{{msg.payload}}","layout":"row-spread","x":700,"y":540,"wires":[]},{"id":"e4770a51.26d578","type":"ui_button","z":"97038f39.5498a","name":"","group":"7b56596.3bcfda8","order":4,"width":"2","height":"1","passthru":false,"label":"thing2","tooltip":"","color":"","bgcolor":"black","icon":"","payload":"thing1","payloadType":"str","topic":"","x":160,"y":580,"wires":[["2e75baa5.21cfb6"]]},{"id":"5c7dee66.ba74","type":"ui_text","z":"97038f39.5498a","group":"7b56596.3bcfda8","order":5,"width":"4","height":"1","name":"","label":"Right, Forward, Left, Ba...","format":"{{msg.payload}}","layout":"row-spread","x":720,"y":580,"wires":[]},{"id":"8df38b15.b6ec08","type":"change","z":"97038f39.5498a","name":"","rules":[{"t":"delete","p":"payload","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":540,"wires":[["29d0f8d8.5020c8"]]},{"id":"2e75baa5.21cfb6","type":"change","z":"97038f39.5498a","name":"","rules":[{"t":"delete","p":"payload","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":580,"wires":[["5c7dee66.ba74"]]},{"id":"86c7cd84.0b053","type":"ui_button","z":"97038f39.5498a","name":"","group":"7b56596.3bcfda8","order":6,"width":"2","height":"1","passthru":false,"label":"+","tooltip":"","color":"","bgcolor":"black","icon":"","payload":"+","payloadType":"str","topic":"","x":160,"y":620,"wires":[[]]},{"id":"2457f7.5c16980a","type":"ui_text","z":"97038f39.5498a","group":"7b56596.3bcfda8","order":7,"width":"4","height":"1","name":"Blank","label":"","format":"","layout":"row-spread","x":310,"y":660,"wires":[]},{"id":"1fad9c08.006ef4","type":"ui_text","z":"97038f39.5498a","group":"7b56596.3bcfda8","order":8,"width":"6","height":"1","name":"Blank","label":"","format":"","layout":"row-spread","x":310,"y":700,"wires":[]},{"id":"7b56596.3bcfda8","type":"ui_group","name":"","tab":"303d81b1.a0523e","order":1,"disp":true,"width":"6","collapse":false},{"id":"303d81b1.a0523e","type":"ui_tab","name":"Menu","icon":"dashboard","disabled":false,"hidden":false}]

The "+" button is to add more modules/ things. Is there a way to basically add a Dashboard button with a Dashboard button?

well it's software - so there is always a way... - but not simply using the default widgets, no.
I suspect if you use a ui_template you could create something but would be your own custom code.

1 Like

Is there a way to enable disabled nodes by clicking a Dashboard button?
I could just make a big list and...

[{"id":"6ce77478.d07bcc","type":"ui_button","z":"97038f39.5498a","name":"","group":"7b56596.3bcfda8","order":2,"width":"2","height":"1","passthru":false,"label":"Head1","tooltip":"","color":"","bgcolor":"black","icon":"","payload":"Head 1","payloadType":"str","topic":"","x":270,"y":700,"wires":[["8df38b15.b6ec08"]]},{"id":"29d0f8d8.5020c8","type":"ui_text","z":"97038f39.5498a","group":"7b56596.3bcfda8","order":3,"width":"4","height":"1","name":"","label":"Forward, Backward","format":"{{msg.payload}}","layout":"row-spread","x":700,"y":700,"wires":[]},{"id":"e4770a51.26d578","type":"ui_button","z":"97038f39.5498a","name":"","group":"7b56596.3bcfda8","order":4,"width":"2","height":"1","passthru":false,"label":"Head 2","tooltip":"","color":"","bgcolor":"black","icon":"","payload":"Head 2","payloadType":"str","topic":"","x":540,"y":860,"wires":[[]]},{"id":"8df38b15.b6ec08","type":"change","z":"97038f39.5498a","name":"placeholder for future nodes","rules":[{"t":"delete","p":"payload","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":700,"wires":[["29d0f8d8.5020c8"]]},{"id":"86c7cd84.0b053","type":"ui_button","z":"97038f39.5498a","name":"","group":"7b56596.3bcfda8","order":6,"width":"2","height":"1","passthru":false,"label":"+","tooltip":"","color":"","bgcolor":"black","icon":"","payload":"+","payloadType":"str","topic":"","x":270,"y":760,"wires":[["d24b9c89.64a1f"]]},{"id":"2457f7.5c16980a","type":"ui_text","z":"97038f39.5498a","group":"7b56596.3bcfda8","order":7,"width":"4","height":"1","name":"Blank","label":"","format":"","layout":"row-spread","x":410,"y":740,"wires":[]},{"id":"1fad9c08.006ef4","type":"ui_text","z":"97038f39.5498a","group":"7b56596.3bcfda8","order":8,"width":"6","height":"1","name":"Blank","label":"","format":"","layout":"row-spread","x":530,"y":740,"wires":[]},{"id":"5e88adf8.f42154","type":"http request","z":"97038f39.5498a","name":"","method":"GET","ret":"bin","paytoqs":"ignore","url":"https://global.discourse-cdn.com/business6/uploads/nodered/original/3X/f/d/fdca2a072d91690342a41defd7aea9b1e0f8bfba.png","tls":"","persist":false,"proxy":"","authType":"","x":110,"y":740,"wires":[["ae72eeea.db9b"]]},{"id":"ae72eeea.db9b","type":"image viewer","z":"97038f39.5498a","name":"","width":160,"data":"payload","dataType":"msg","x":90,"y":780,"wires":[[]]},{"id":"c971e473.4e4c78","type":"inject","z":"97038f39.5498a","name":".","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":90,"y":700,"wires":[["5e88adf8.f42154"]]},{"id":"f91e7de9.6a218","type":"ui_button","z":"97038f39.5498a","name":"","group":"7b56596.3bcfda8","order":4,"width":"2","height":"1","passthru":false,"label":"Head 3","tooltip":"","color":"","bgcolor":"black","icon":"","payload":"Head 3","payloadType":"str","topic":"","x":540,"y":900,"wires":[[]]},{"id":"d24b9c89.64a1f","type":"function","z":"97038f39.5498a","name":"Button for buttons","func":"return msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":330,"y":820,"wires":[["e4770a51.26d578","f91e7de9.6a218","d66ab983.147998","37285e42.29cb82","610897ac.074b38","8da74a0b.4bc4c8","e31ca7a1.56a6c8","730a6a3b.f05774","eb09faf6.53f4f8"]]},{"id":"d66ab983.147998","type":"ui_button","z":"97038f39.5498a","name":"","group":"7b56596.3bcfda8","order":4,"width":"2","height":"1","passthru":false,"label":"Head 4","tooltip":"","color":"","bgcolor":"black","icon":"","payload":"Head 4","payloadType":"str","topic":"","x":540,"y":940,"wires":[[]]},{"id":"37285e42.29cb82","type":"ui_button","z":"97038f39.5498a","name":"","group":"7b56596.3bcfda8","order":4,"width":"2","height":"1","passthru":false,"label":"Head 5","tooltip":"","color":"","bgcolor":"black","icon":"","payload":"Head 4","payloadType":"str","topic":"","x":540,"y":980,"wires":[[]]},{"id":"610897ac.074b38","type":"ui_button","z":"97038f39.5498a","name":"","group":"7b56596.3bcfda8","order":4,"width":"2","height":"1","passthru":false,"label":"Head 6","tooltip":"","color":"","bgcolor":"black","icon":"","payload":"Head 4","payloadType":"str","topic":"","x":540,"y":1020,"wires":[[]]},{"id":"8da74a0b.4bc4c8","type":"ui_button","z":"97038f39.5498a","name":"","group":"7b56596.3bcfda8","order":4,"width":"2","height":"1","passthru":false,"label":"Head 7","tooltip":"","color":"","bgcolor":"black","icon":"","payload":"Head 7","payloadType":"str","topic":"","x":540,"y":1060,"wires":[[]]},{"id":"e31ca7a1.56a6c8","type":"ui_button","z":"97038f39.5498a","name":"","group":"7b56596.3bcfda8","order":4,"width":"2","height":"1","passthru":false,"label":"Head 8","tooltip":"","color":"","bgcolor":"black","icon":"","payload":"Head 3","payloadType":"str","topic":"","x":540,"y":1100,"wires":[[]]},{"id":"730a6a3b.f05774","type":"ui_button","z":"97038f39.5498a","name":"","group":"7b56596.3bcfda8","order":4,"width":"2","height":"1","passthru":false,"label":"Head 9","tooltip":"","color":"","bgcolor":"black","icon":"","payload":"Head 9","payloadType":"str","topic":"","x":540,"y":1140,"wires":[[]]},{"id":"eb09faf6.53f4f8","type":"ui_button","z":"97038f39.5498a","name":"","group":"7b56596.3bcfda8","order":4,"width":"2","height":"1","passthru":false,"label":"Head 10","tooltip":"","color":"","bgcolor":"black","icon":"","payload":"Head 4","payloadType":"str","topic":"","x":540,"y":1180,"wires":[[]]},{"id":"7b56596.3bcfda8","type":"ui_group","name":"","tab":"303d81b1.a0523e","order":1,"disp":true,"width":"6","collapse":false},{"id":"303d81b1.a0523e","type":"ui_tab","name":"Menu","icon":"dashboard","disabled":false,"hidden":false}]```

They can be enabled and disabled. But not hidden/unhidden.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.