Forum Discussion
tomseidel
8 years agoRegular Visitor
Custom visual arrange layers of visualization
Hi, we need a datetime picker as custom visual. One option seemed to be including bootstrap/jquery based external components. Thats what I tried, but cant get it to work. I used: "npm install jque...
v-viig
8 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
tomseidel
8 years agoRegular Visitor
Well I did the import:
@import (less) "node_modules/bootstrap/dist/css/bootstrap.css";
@import (less) "node_modules/bootstrap-datetimepicker/bootstrap-datetimepicker.css";
So it must be the root selector thing. Where can I read more about that? Not sure what to look for.
Thanks, again
- v-viig8 years agoCommunity Champion
Please read documentation of datepicker to find out how to specify another root element.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals