How to capture a click event of fullscreenBtn in Code Mode?
Answered
I would like to capture a click event when "fullscreenBtn" on Dashboard is clicked in Code Mode (Please see the attached screenshot to explain which is fullscreenBtn).
I have tried the following codes, but they do not work.
Do you have any idea how to capture a click event of fullscreenBtn?
case 1 : addEventListener
var button = document.getElementById('fullscreenBtn'); button.addEventListener('click',function(){ alert('clicked'); });case 2 : jQuery
$("[id='fullscreenBtn']").click(function(){ alert('clicked'); });
Files:
1.png
Hi Junya,
Try 'onclick' rather than just click.
Let me know if that works. Otherwise, this might be a question better directed at Peter Damen as we don't have any consultancy resource here in Support anymore.
Kind regards,
Chris
Hi Junya,
Try 'onclick' rather than just click.
Let me know if that works. Otherwise, this might be a question better directed at Peter Damen as we don't have any consultancy resource here in Support anymore.
Kind regards,
Chris
Hi Chris,
Thank you very much for your quick reply as always.
I have tried 'onclick' instead of click, but it did not work.
I guess it is impossible capturing fullscreenBtn/exitFcreenBtn actions from Code Mode, since they are the parts outside dashboard canvas.
Regards,
Junya
Hi Chris,
Thank you very much for your quick reply as always.
I have tried 'onclick' instead of click, but it did not work.
I guess it is impossible capturing fullscreenBtn/exitFcreenBtn actions from Code Mode, since they are the parts outside dashboard canvas.
Regards,
Junya
Hi Junya,
You're welcome.
Yes, that's possible, it might be a safety reason to make it unavailable. Apologies I wasn't able to provide a solution.
Have a good week!
Kind regards,
Chris
Hi Junya,
You're welcome.
Yes, that's possible, it might be a safety reason to make it unavailable. Apologies I wasn't able to provide a solution.
Have a good week!
Kind regards,
Chris
Replies have been locked on this page!