Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello everyones.. Again.. 😀
I'm trying to create a dialog box on Sense Hub using LeonardoUI libraries.
it's a simple dialog that should be shown at the load of the page: (code below)
On the LeonardoUI git url https://qlik-oss.github.io/leonardo-ui/dialog.html, there is a script to show the dialog with a button trigger.
<script> var dialogTriggers = document.querySelectorAll( ".example-box .dialog-trigger" ); dialogTriggers = [].slice.apply( dialogTriggers ); // convert to array dialogTriggers.forEach( function ( element ) { element.addEventListener( "click", function() { var dialog = leonardoui.dialog( { content: element.nextElementSibling.innerHTML, closeOnEscape: true } ); } ); } ); </script>
what I'm trying to do is to show the dialog when the page is loads.
there is any expert that can help me to do this!?
ty so much
Alex