How to set the Text property of a label with JavaScript?

I want to set the displayed text of a iq-label with javascript. There is an example which dynamically changes the precision of numbers.

Which is very similar. I tried to find the information in the "developers manual WebIQ COnnect 2.10 API documentation", but I could not find it. Even not the information for setting the precision, which is part of the example below.

/smart-hmi-webiq-designer-and-server-zqilynus/post/dynamic-precision-on-displayed-value-0679ibStaIKRk13

Can anybody:

1. Provide an example how to do this
2. Explain where I can find the information how to read/write the data (item, text, precision, width, height, ...) of the existing widgets.

Regards

Best reply by webiq-sk

Hello,

1. this is the suggested solution:

2. Information on the web framework can be found in "WebIQ Visuals Reference" documentation - however in this case only digging into the source code for this widget will lead to a solution (visuals-controls.js). The "WebIQ Connect 2.10 API" documentation is for the server, not for the web framework.

View original
2 replies