@ -10,9 +10,9 @@ A JavaScript function used to render SCADA symbol state.
**Parameters:**
<ul>
<li><b>ctx:</b><code>ScadaSymbolContext</code> - Context of the SCADA symbol.
<li><b>ctx:</b><code>ScadaSymbolContext</code> - <ahref="${siteBaseUrl}/docs${docPlatformPrefix}/user-guide/scada/scada-symbols-dev-guide/#scadasymbolcontext"target="_blank">Context</a> of the SCADA symbol.
</li>
<li><b>svg:</b><code><ahref="https://svgjs.dev/docs/3.2/container-elements/#svg-svg">SVG.Svg</a></code> - A root svg node. Instance of <ahref="https://svgjs.dev/docs/3.2/container-elements/#svg-svg">SVG.Svg</a>.
<li><b>svg:</b><code><ahref="https://svgjs.dev/docs/3.2/container-elements/#svg-svg">SVG.Svg</a></code> - A root svg node. Instance of <ahref="https://svgjs.dev/docs/3.2/container-elements/#svg-svg"target="_blank">SVG.Svg</a>.
</li>
</ul>
@ -20,8 +20,36 @@ A JavaScript function used to render SCADA symbol state.
##### Examples
<br>
TODO
* Change colors for many tags on the value of the “active, value, minValue, maxValue”
```javascript
var levelUpButton = ctx.tags.levelUpButton;
var levelDownButton = ctx.tags.levelDownButton;
var levelArrowUp = ctx.tags.levelArrowUp;
var levelArrowDown = ctx.tags.levelArrowDown;
var active = ctx.values.active;
var value = ctx.values.value;
var minValue = ctx.properties.minValue;
var maxValue = ctx.properties.maxValue;
var levelUpEnabled = active && value <maxValue;
var levelDownEnabled = active && value > minValue;
@ -10,11 +10,10 @@ A JavaScript function invoked when user clicks on SVG element with specific tag.
**Parameters:**
<ul>
<li><b>ctx:</b><code>ScadaSymbolContext</code> - Context of the SCADA symbol.
<li><b>ctx:</b><code>ScadaSymbolContext</code> - <ahref="${siteBaseUrl}/docs${docPlatformPrefix}/user-guide/scada/scada-symbols-dev-guide/#scadasymbolcontext"target="_blank">Context</a> of the SCADA symbol.
See the examples below to learn how to <ahref="https://svgjs.dev/docs/3.2/manipulating/"target="_blank">manipulate</a> and <ahref="${siteBaseUrl}/docs${docPlatformPrefix}/user-guide/scada/scada-symbols-dev-guide/#scadasymbolanimation"target="_blank">animate</a> elements.<br>
</li>
<li><b>event:</b><code>Event</code> - DOM event.
</li>
@ -24,6 +23,27 @@ A JavaScript function invoked when user clicks on SVG element with specific tag.
Avoid manually setting behavior values, as shown in the example, see <ahref="${siteBaseUrl}/docs${docPlatformPrefix}/user-guide/scada/scada-symbols-dev-guide/#best-practices"target="_blank">best practice</a> for Device Interaction
@ -10,11 +10,10 @@ A JavaScript function used to render SCADA symbol element with specific tag.
**Parameters:**
<ul>
<li><b>ctx:</b><code>ScadaSymbolContext</code> - Context of the SCADA symbol.
<li><b>ctx:</b><code>ScadaSymbolContext</code> - <ahref="${siteBaseUrl}/docs${docPlatformPrefix}/user-guide/scada/scada-symbols-dev-guide/#scadasymbolcontext"target="_blank">Context</a> of the SCADA symbol.
See the examples below to learn how to <ahref="https://svgjs.dev/docs/3.2/manipulating/"target="_blank">manipulate</a> and <ahref="${siteBaseUrl}/docs${docPlatformPrefix}/user-guide/scada/scada-symbols-dev-guide/#scadasymbolanimation"target="_blank">animate</a> elements.<br>
</li>
</ul>
@ -22,6 +21,46 @@ A JavaScript function used to render SCADA symbol element with specific tag.
##### Examples
<br>
* Change the background of the element based on the value of the “active”