Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
BU
Partner - Contributor III
Partner - Contributor III

Edit QlikSense Hub using LeonardoUI

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)

BU_0-1587044211981.png

 

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

Labels (4)
0 Replies