Forum Discussion
satishr
8 years agoHelper III
Custom visual - tables with tabs
I have a requirement to create a custom visual where I have to create a tabbed interface each containing tables something similar to the image. Please help me with any code examples. I'm trying to cr...
- 8 years ago
That depends on what library you use. The common way is to add an event handler for click event:
- Vanila JS: element.addEventListener("click", () => {// TODO: Do something });
- D3.js / jQuery: selection.on("click", () => {// TODO: Do something })
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
v-viig
8 years agoCommunity Champion
That depends on what library you use. The common way is to add an event handler for click event:
- Vanila JS: element.addEventListener("click", () => {// TODO: Do something });
- D3.js / jQuery: selection.on("click", () => {// TODO: Do something })
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
satishr
8 years agoHelper III
Thanks, I used the D3 option and it is working.
d3.select("#id").on('click', function() { ... }