Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.
in my extension I am trying to call gotoSheet() in a div.
var link = document.createElement("div");
link.setAttribute("ng-click", "navigation.gotoSheet('" + linkitem.sheetid + "');");
var span = document.createElement("span");
span.setAttribute("class", "lui-icon lui-icon--play");
var span1 = document.createElement("span");
span1.innerHTML = "Test";
This leads into:
<span class="lui-icon lui-icon--play" area-hidden="true"></span>
It doesn't do anything when clicking on that div.
Someone has an idea?
PS: I tried without the ' but it didn't work as well...
Maybe you need to prefix it with qlik so "qlik.navigation.gotoSheet(..."
The one time I did this I never used the ng-click event tho. I did it with vanilla js event listener and stored the sheet id as a data-attribute on the element.So maybe something like:
View solution in original post
Man, this is perfect and works instantly!!!!
The first qlik.navigation does not work (I don't know why) - but your second hint works fine!
Thanks you so much!