Hello everyone! The code below is from a dashboard button. How can I send this button an on-click using http-request? (Either function or other) In id="microphone_control_3910" "3910" always changes to node red Deploy
<button class="nr-ui-microphone-button md-button md-ink-ripple" type="button" ng-transclude="" aria-label="capture audio" id="microphone_control_3910" style="height:100% !important;" ng-disabled="!enabled" ng-click="toggleMicrophone()"><i class="fa fa-microphone fa-2x"></i><div class="md-ripple-container" style=""></div></button>
Or ui_microphone.js:
html += String.raw`<md-button aria-label="capture audio" id="microphone_control_{{$id}}" class="nr-ui-microphone-button" style="height:100% !important;" ng-disabled="!enabled" ng-mousedown="toggleMicrophone(true)" ng-mouseup="toggleMicrophone()"><i class="fa fa-microphone"></i></md-button>`;