2/16/2023 1:53 PM | |
Joined: 6/20/2011 Last visit: 11/26/2024 Posts: 77 Rating:
|
Hi I want to build a dynamic svg I have downloaded 10 svg from Googles material design icons (https://fonts.google.com/icons) These are the numbers 0…..9 With inkscape I have put al the numbers in 1 svg file. With vscode I edited this svg file. And created some parameters. No I have made a paramDef : hmi:paramDef name="Number" type="Number" default="0" depending on the value, I want to make the numbers 0..9 visible. I have used a Boolean to make the circle around the number visible: hmi-bind:visibility = "{{ParamProps.ShowRound ? 'show':'hidden'}}" But what is the syntax to make item visible depending on a number ?
AttachmentCode1.txt (523 Downloads) |
Last edited by: Jen_Moderator at: 02/17/2023 08:16:57Code attached as .txt file. |
|
2/16/2023 2:39 PM | |
Joined: 6/20/2011 Last visit: 11/26/2024 Posts: 77 Rating:
|
i thought i had the right syntax but for some reason TIA portal crashed with the following code :
[snip] AttachmentCode2.txt (550 Downloads) |
Last edited by: Jen_Moderator at: 02/17/2023 08:19:07Code attached as .txt file. |
|
2/16/2023 2:44 PM | |
Joined: 6/20/2011 Last visit: 11/26/2024 Posts: 77 Rating:
|
This is the original file i have changed:
AttachmentCode3.txt (493 Downloads) |
Last edited by: Jen_Moderator at: 02/17/2023 08:20:09Code attached as .txt file. |
|
3/7/2023 1:02 PM | |
Joined: 3/9/2015 Last visit: 12/6/2024 Posts: 34 Rating:
|
seems wrong since it should be 'show' or 'hidden' . https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/visibility
I think is should be something like this. You may also test each svg separately since I already encountered problems with tia portal and certain svg formats on different web icon packs. Where the svg made tia crash completely. If you are looking for Font awesome where you can simply change the collor. |
Last edited by: rien.verbeke at: 03/07/2023 13:07:34Last edited by: rien.verbeke at: 03/07/2023 13:08:59 |
|
This contribution was helpful to
1 thankful Users |
3/8/2023 11:07 AM | |
Joined: 6/20/2011 Last visit: 11/26/2024 Posts: 77 Rating:
|
Bedankt Rien, i will take look at the github repository. i will pick it up when i have time again :-) |
11/9/2023 9:35 AM | |
Joined: 1/21/2013 Last visit: 2/7/2025 Posts: 3522 Rating:
|
Hi, Unfortunately, the support entry where you could find the document has been removed. However, for those who want the document, it can be found in other threads here in the forum.
Kind regards |
Last edited by: Stefan Arcularius at: 11/09/2023 09:37:56Typo corrected |
|
This contribution was helpful to
1 thankful Users |
4/2/2024 1:47 PM | |
Joined: 3/31/2017 Last visit: 2/5/2025 Posts: 47 Rating:
|
Hello Jen. Any news about this tool? Thank you. |
Follow us on