{"id":65492,"date":"2026-11-25T19:15:20","date_gmt":"2026-11-25T18:15:20","guid":{"rendered":"https:\/\/amit-automation.cz\/podpora\/casto-kladene-otazky\/amit-designer-napoveda\/replacements\/"},"modified":"2026-11-25T19:15:20","modified_gmt":"2026-11-25T18:15:20","slug":"replacements","status":"publish","type":"napoveda","link":"https:\/\/amit-automation.cz\/en\/support\/faq\/amit-designer-help\/replacements\/","title":{"rendered":"Replacements"},"content":{"rendered":"<p style=\"text-align: justify;\"><span lang=\"EN-US\" style=\"font-size: 10pt; font-family: verdana, geneva, sans-serif;\">This feature should ease replacement of a predefined text in a component. You can change the text, font size, color, stroke, or opacity of the text element.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/img_7.5.1.jpg\" alt=\"7.5.1\" width=\"300\" height=\"232\" \/><\/p>\n<p style=\"text-align: justify;\">1. Start with the component variables again and create the following variables:<\/p>\n<ul style=\"list-style-type: square;\">\n<li style=\"text-align: justify;\">Variable Text with type <em>String<\/em><\/li>\n<li style=\"text-align: justify;\">Variable Font Size with type <em>Int<\/em><\/li>\n<li style=\"text-align: justify;\">Fill with type <em>Color<\/em><\/li>\n<li style=\"text-align: justify;\">Opacity with type <em>Boolean<\/em><\/li>\n<\/ul>\n<p style=\"text-align: justify;\">The <em>Opacity<\/em> here is similar to <em>Opacity<\/em> animation, which means that the text will be visible if the value of Opacity formula is within the Opacity min\/max range.<\/p>\n<p style=\"text-align: justify;\">2. Now create a text element:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/img_7.5.2.jpg\" alt=\"7.5.2\" width=\"520\" height=\"291\" \/><\/p>\n<p style=\"text-align: justify;\">3.\u00a0Fill in the <em>Component Variables.<\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/img_7.5.3.jpg\" alt=\"7.5.3\" width=\"520\" height=\"304\" \/><\/p>\n<p style=\"text-align: justify;\">4.Fill in the <em>Replacement<\/em> -&gt; <em>Text<\/em> in the <em>Properties window<\/em>. <em>Note: The variable names are case sensitive.<\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/img_7.5.4.jpg\" alt=\"7.5.4\" width=\"300\" height=\"231\" \/><\/p>\n<p style=\"text-align: justify;\"><span lang=\"EN-US\">To set the Fill Replacement, you are presented with the dialog:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/img_7.5.5.jpg\" alt=\"7.5.5\" width=\"300\" height=\"313\" \/><\/p>\n<p style=\"text-align: justify;\">5. When you have filled in all properties, save your component.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/img_7.5.6.jpg\" alt=\"7.5.6\" width=\"600\" height=\"438\" \/><\/p>\n<p style=\"text-align: justify;\">6. The text will change according to the value of an attached component variable. After saving the component, import it into your view.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/img_7.5.7.jpg\" alt=\"7.5.7\" width=\"600\" height=\"165\" \/><\/p>\n<p style=\"text-align: justify;\">Replacements are important for complex components where you can replace the component text (button text, for example) with just one click.<\/p>\n","protected":false},"menu_order":40,"template":"","class_list":["post-65492","napoveda","type-napoveda","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/amit-automation.cz\/en\/wp-json\/wp\/v2\/napoveda\/65492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/amit-automation.cz\/en\/wp-json\/wp\/v2\/napoveda"}],"about":[{"href":"https:\/\/amit-automation.cz\/en\/wp-json\/wp\/v2\/types\/napoveda"}],"version-history":[{"count":0,"href":"https:\/\/amit-automation.cz\/en\/wp-json\/wp\/v2\/napoveda\/65492\/revisions"}],"wp:attachment":[{"href":"https:\/\/amit-automation.cz\/en\/wp-json\/wp\/v2\/media?parent=65492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}