{"id":65560,"date":"2026-11-25T19:15:51","date_gmt":"2026-11-25T18:15:51","guid":{"rendered":"https:\/\/amit-automation.cz\/podpora\/casto-kladene-otazky\/amit-designer-napoveda\/on-touch-example\/"},"modified":"2026-11-25T19:15:51","modified_gmt":"2026-11-25T18:15:51","slug":"on-touch-example","status":"publish","type":"napoveda","link":"https:\/\/amit-automation.cz\/en\/support\/faq\/amit-designer-help\/on-touch-example\/","title":{"rendered":"On touch example"},"content":{"rendered":"<p>The following Example will show you how to create a button component with an On Touch action.<\/p>\n<p>1. Create a new component and enter edit mode. If you don\u2019t know how to create components, please read the section <a href=\"\/en\/documentation\/components\">Components<\/a><\/p>\n<p>2. Now create a rectangle and put the text \u201cPress me\u201d over it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/img_20.3.1.jpg\" alt=\"20.3.1\" width=\"200\" height=\"67\" \/><\/p>\n<p>3. Select the rectangle and click on Properties -&gt; Commands -&gt; On Touch<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/img_20.3.2.jpg\" alt=\"20.3.2\" width=\"300\" height=\"144\" \/><\/p>\n<p>4. Check the \u201c<strong>Fill\u201d<\/strong> check box and select a fill color<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/img_20.3.3.jpg\" alt=\"20.3.3\" width=\"300\" height=\"162\" \/><\/p>\n<p>5. Now place your component into the view<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/img_20.3.4.jpg\" alt=\"20.3.4\" width=\"450\" height=\"309\" \/><\/p>\n<p style=\"text-align: justify;\">When a user presses the button, its color will change to green<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/img_20.3.5.jpg\" alt=\"20.3.5\" width=\"350\" height=\"282\" \/><\/p>\n<p style=\"text-align: justify;\">When the user releases the button, the color will return back to normal.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/myscada.org\/downloads\/manuals_image\/img_20.3.6.jpg\" alt=\"20.3.6\" width=\"350\" height=\"282\" \/><\/p>\n","protected":false},"menu_order":108,"template":"","class_list":["post-65560","napoveda","type-napoveda","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/amit-automation.cz\/en\/wp-json\/wp\/v2\/napoveda\/65560","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\/65560\/revisions"}],"wp:attachment":[{"href":"https:\/\/amit-automation.cz\/en\/wp-json\/wp\/v2\/media?parent=65560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}