diff --git a/ui-ngx/src/app/modules/home/pages/scada-symbol/scada-symbol-editor.models.ts b/ui-ngx/src/app/modules/home/pages/scada-symbol/scada-symbol-editor.models.ts
index 005f6abd8e..3806f115eb 100644
--- a/ui-ngx/src/app/modules/home/pages/scada-symbol/scada-symbol-editor.models.ts
+++ b/ui-ngx/src/app/modules/home/pages/scada-symbol/scada-symbol-editor.models.ts
@@ -34,7 +34,7 @@ import {
import { TbEditorCompletion, TbEditorCompletions } from '@shared/models/ace/completion.models';
import { CustomTranslatePipe } from '@shared/pipe/custom-translate.pipe';
import { AceHighlightRule, AceHighlightRules } from '@shared/models/ace/ace.models';
-import { ValueType } from '@shared/models/constants';
+import { HelpLinks, ValueType } from '@shared/models/constants';
import ITooltipsterInstance = JQueryTooltipster.ITooltipsterInstance;
import TooltipPositioningSide = JQueryTooltipster.TooltipPositioningSide;
import ITooltipsterHelper = JQueryTooltipster.ITooltipsterHelper;
@@ -1131,6 +1131,10 @@ export const clickActionFunctionCompletions = (ctxCompletion: TbEditorCompletion
export const scadaSymbolContextCompletion = (metadata: ScadaSymbolMetadata, tags: string[],
customTranslate: CustomTranslatePipe): TbEditorCompletion => {
+
+ const scadaSymbolAnimationLink = HelpLinks.linksMap.scadaSymbolDevAnimation;
+ const scadaSymbolAnimation = `ScadaSymbolAnimation`;
+
const properties: TbEditorCompletion = {
meta: 'object',
type: 'object',
@@ -1191,9 +1195,8 @@ export const scadaSymbolContextCompletion = (metadata: ScadaSymbolMetadata, tags
}
],
return: {
- description: 'Instance of ScadaSymbolAnimation which has generally similar methods as ' +
- 'SVG.Runner to control the animation.',
- type: 'ScadaSymbolAnimation'
+ description: `Instance of ${scadaSymbolAnimation} class with API to setup and control the animation.`,
+ type: scadaSymbolAnimation
}
},
cssAnimation: {
@@ -1207,9 +1210,8 @@ export const scadaSymbolContextCompletion = (metadata: ScadaSymbolMetadata, tags
}
],
return: {
- description: 'Instance of ScadaSymbolAnimation which has generally similar methods as ' +
- 'SVG.Runner to control the animation.',
- type: 'ScadaSymbolAnimation'
+ description: `Instance of ${scadaSymbolAnimation} class with API to setup and control the animation.`,
+ type: scadaSymbolAnimation
}
},
resetCssAnimation: {
diff --git a/ui-ngx/src/app/shared/models/constants.ts b/ui-ngx/src/app/shared/models/constants.ts
index 36600eec72..1a681972bf 100644
--- a/ui-ngx/src/app/shared/models/constants.ts
+++ b/ui-ngx/src/app/shared/models/constants.ts
@@ -187,6 +187,7 @@ export const HelpLinks = {
gatewayInstall: `${helpBaseUrl}/docs/iot-gateway/install/docker-installation`,
scada: `${helpBaseUrl}/docs${docPlatformPrefix}/user-guide/scada`,
scadaSymbolDev: `${helpBaseUrl}/docs${docPlatformPrefix}/user-guide/scada/symbols-dev-guide`,
+ scadaSymbolDevAnimation: `${helpBaseUrl}/docs${docPlatformPrefix}/user-guide/scada/scada-symbols-dev-guide/#scadasymbolanimation`
}
};
/* eslint-enable max-len */