Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 49061

Custom visual arrange layers of visualization

$
0
0

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 jquery-datetimepicker" and referenced it and a simple external script within pbiviz.json: "assets/js/jscripts.js"

content is just:

 

window.jQuery(function () {
$('#datetimepicker').datetimepicker();
});

 

when I create just a simple text input I got the error-message:

Capture.JPG

My constructor just adds an input element with that id:

 

this.target = options.element;
this.updateCount = 0;
if (typeof document !== "undefined") {
const new_txt: HTMLElement = document.createElement("input");
new_txt.id = 'datetimepicker';
this.target.appendChild(new_txt);
}

 

how can I get that to work and if so, how do I get the select value back?

 

Thanks for you help,

Thomas


Viewing all articles
Browse latest Browse all 49061

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>