Ui button event

Hello there is a way to get the release event of ui button or is possible to get only the click
Thanks
Luca

Dashboard is designed as a simple to use, no-code tool. So the simple answer is no.

You can however, create your own buttons using ui_template.

But if you want true, fine-grained control over your UI, you might be better off with something like uibuilder. The uibuilder client has a simple-to-use function designed to be used to easily send a msg back to Node-RED from an event handler:

<button onmouseup="uibuilder.eventSend(event)">Press Me!</button>

In the next release of uibuilder (v6.1), if you put the button inside <form>...</form> tags, you will even get back all of the form inputs without any further coding.

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