diff --git a/ui-ngx/src/assets/help/en_US/scada/symbol_state_render_fn.md b/ui-ngx/src/assets/help/en_US/scada/symbol_state_render_fn.md
index bdb0d45234..7270066f80 100644
--- a/ui-ngx/src/assets/help/en_US/scada/symbol_state_render_fn.md
+++ b/ui-ngx/src/assets/help/en_US/scada/symbol_state_render_fn.md
@@ -10,9 +10,9 @@ A JavaScript function used to render SCADA symbol state.
**Parameters:**
- - ctx:
ScadaSymbolContext - Context of the SCADA symbol.
+ - ctx:
ScadaSymbolContext - Context of the SCADA symbol.
- - svg:
SVG.Svg - A root svg node. Instance of SVG.Svg.
+ - svg:
SVG.Svg - A root svg node. Instance of SVG.Svg.
@@ -20,8 +20,36 @@ A JavaScript function used to render SCADA symbol state.
##### Examples
-
+* Change colors for many tags on the value of the “active, value, minValue, maxValue”
-TODO
+```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;
+
+if (levelUpEnabled) {
+ ctx.api.enable(levelUpButton);
+ levelArrowUp[0].attr({fill: '#647484'});
+} else {
+ ctx.api.disable(levelUpButton);
+ levelArrowUp[0].attr({fill: '#777'});
+}
+
+if (levelDownEnabled) {
+ ctx.api.enable(levelDownButton);
+ levelArrowDown[0].attr({fill: '#647484'});
+} else {
+ ctx.api.disable(levelDownButton);
+ levelArrowDown[0].attr({fill: '#777'});
+}
+{:copy-code}
+```
diff --git a/ui-ngx/src/assets/help/en_US/scada/tag_click_action_fn.md b/ui-ngx/src/assets/help/en_US/scada/tag_click_action_fn.md
index 26ec4f9bb3..54552d9455 100644
--- a/ui-ngx/src/assets/help/en_US/scada/tag_click_action_fn.md
+++ b/ui-ngx/src/assets/help/en_US/scada/tag_click_action_fn.md
@@ -10,11 +10,11 @@ A JavaScript function invoked when user clicks on SVG element with specific tag.
**Parameters:**
- - ctx:
ScadaSymbolContext - Context of the SCADA symbol.
+ - ctx:
ScadaSymbolContext - Context of the SCADA symbol.
- element:
Element - SVG element.
- See Manipulating section to manipulate the element.
- See Animating section to animate the element.
+ See Manipulating section to manipulate the element.
+ See Animating section to animate the element.
- event:
Event - DOM event.
@@ -24,6 +24,19 @@ A JavaScript function invoked when user clicks on SVG element with specific tag.
##### Examples
-
+* Set new value action
-TODO
+```javascript
+var active = ctx.values.active;
+var action = active ? 'inactive' : 'active';
+
+ctx.api.callAction(event, action, undefined, {
+ next: () => {
+ ctx.api.setValue('activate', !active);
+ },
+ error: () => {
+ ctx.api.setValue('activate', active);
+ }
+});
+{:copy-code}
+```
diff --git a/ui-ngx/src/assets/help/en_US/scada/tag_state_render_fn.md b/ui-ngx/src/assets/help/en_US/scada/tag_state_render_fn.md
index caed8060d4..8d356281f4 100644
--- a/ui-ngx/src/assets/help/en_US/scada/tag_state_render_fn.md
+++ b/ui-ngx/src/assets/help/en_US/scada/tag_state_render_fn.md
@@ -10,11 +10,11 @@ A JavaScript function used to render SCADA symbol element with specific tag.
**Parameters:**
- - ctx:
ScadaSymbolContext - Context of the SCADA symbol.
+ - ctx:
ScadaSymbolContext - Context of the SCADA symbol.
- element:
Element - SVG element.
- See Manipulating section to manipulate the element.
- See Animating section to animate the element.
+ See Manipulating section to manipulate the element.
+ See Animating section to animate the element.
@@ -22,6 +22,46 @@ A JavaScript function used to render SCADA symbol element with specific tag.
##### Examples
-
+* Change the background of the element based on the value of the “active”
-TODO
+```javascript
+if(ctx.values.active){
+ element.attr({fill: ctx.properties.activeColor});
+} else {
+ element.attr({fill: ctx.properties.inactiveColor});
+}
+{:copy-code}
+```
+
+* Enable and disable the “On” button based on the state of the "active" (avoid or prevent click action)
+
+```javascript
+if (ctx.values.active) {
+ ctx.api.disable(element);
+} else {
+ ctx.api.enable(element);
+}
+{:copy-code}
+```
+
+* Smooth infinite rotation animation based on the value of the “active” with speed based on the value of the “speed”
+
+```javascript
+var on = ctx.values.active;
+var speed = ctx.values.speed ? ctx.values.speed / 60 : 1;
+var animation = ctx.api.cssAnimation(element);
+
+if (on) {
+ if (!animation) {
+ animation = ctx.api.cssAnimate(element, 2000)
+ .rotate(360).loop().speed(speed);
+ } else {
+ animation.speed(speed).play();
+ }
+} else {
+ if (animation) {
+ animation.pause();
+ }
+}
+{:copy-code}
+```