dashboards
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dashboards [2022/06/03 10:30] – [JavaScript for dashboard] emozolyak | dashboards [2023/06/05 08:43] (current) – [JavaScript for dashboard] emozolyak | ||
---|---|---|---|
Line 505: | Line 505: | ||
4. Drawing custom XY graph. | 4. Drawing custom XY graph. | ||
- | 5. Other custom user interaction which can not be done with standard tools. | + | 5. Other custom user interaction which can not be done with standard tools. E.g. with the dashboards made on templates, you can not make subsitutions in the descendants for some elements, like links to other dashboards. However, you may override the link property (which may lead to target page) of the button depending on the dashboard where this button is. |
+ | |||
+ | 6. Downloading graph data with full data set. The graphs in WebHMI can be exported into csv/ | ||
etc. | etc. | ||
+ | == Object properties control example == | ||
+ | |||
+ | <code javascript> | ||
+ | // Image rotation example | ||
+ | var IMAGE_ID = 2; | ||
+ | var currentAngle = 0; | ||
+ | |||
+ | function setAngle() { | ||
+ | setObjProperty(IMAGE_ID, | ||
+ | currentAngle = currentAngle + 10; | ||
+ | if (currentAngle >= 360) { | ||
+ | currentAngle = 0} | ||
+ | } | ||
+ | } | ||
+ | |||
+ | setInterval(setAngle, | ||
+ | </ | ||
dashboards.1654252251.txt.gz · Last modified: 2022/06/03 10:30 by emozolyak