Forum Discussion
Custom visual arrange layers of visualization
Please follow these steps:
- Create a new JS file
- Put this code into a new file: var $ = window.jQuery; var jQuery = window.jQuery
- Add this file into externalJS proeprty of pbiviz.json right after jquery
- pbiviz start
- Check if the issue is resolved
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Hi Ignat,
that change it and its not throwing any error now. so the code is working.
But, the on-click events on that textbox are not firing any datetime visuals.
I guess the event handling has been overwritten by power bi? can I somehow reactivate that?
Thanks
Thomas
- v-viig8 years agoCommunity Champion
Power BI does not override events but it loads code into a new DIV.
I've seen such issues with similar components. Please review DOM when you click it. You would probably need to specify rootSelector for datepicker.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- tomseidel8 years agoRegular Visitor
Not sure, what that means. However I noticed that when I click the control several times it slowly displays.
1st click - nothing to see
2nd click - half visible
3rd click - full visible without any formatting
So the remaining questions would be.
1. Why do I have to click 3 times to fully see it?
2. why is my external css I imported in the visual.less not working
@import "node_modules/jquery-datetimepicker/jquery.datetimepicker.css";
Thanks
Thomas
- v-viig8 years agoCommunity Champion
- Not sure. Probably it's related to CSS or missed rootSelector property
- You must add import statement into less file: @import (less) "node_modules/jquery-datetimepicker/jquery.datetimepicker.css";
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals