Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi guys,
i want to build a slider similar like in this picture here
Before i design the slider, i just want to read values dynamically from a simple textbox. I managed that without problems by creating a DOM-Element (input) with js
But as i try changing the value, it just stays static (it still returns the value 800) 😞
Does anyone have i idea how to read the values from an textbox when i change the value on it?
private createHelpLinkElement3(): Element { let linkElement = document.createElement("input"); linkElement.setAttribute("value", "800"); linkElement.setAttribute("class", "helpLink3"); return linkElement; };
Here you can download my project
Solved! Go to Solution.
Hi @az2451
We'd recommend to bind a keypress event to catch each change:
this.helpLinkElement3.addEventListener("keypress", (event) => { this.getx = parseInt((event.target as HTMLInputElement).value); console.log(this.getx); });
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Hi @az2451
We'd recommend to bind a keypress event to catch each change:
this.helpLinkElement3.addEventListener("keypress", (event) => { this.getx = parseInt((event.target as HTMLInputElement).value); console.log(this.getx); });
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
You are so amazing 🙂
Thank you!
User | Count |
---|---|
8 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |