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:
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