question

saikrishna avatar image
saikrishna asked

hide the button (touch wrapper) on its click

apl
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Alexander Martin avatar image
Alexander Martin answered

Hi,

it's as simple as asking:

TouchWrapper onPress

display property

{
    "type": "APL",
    "version": "1.3",
    "settings": {},
    "theme": "dark",
    "import": [],
    "resources": [],
    "styles": {},
    "onMount": [],
    "graphics": {},
    "commands": {},
    "layouts": {},
    "mainTemplate": {
        "parameters": [
            "payload"
        ],
        "items": [{
            "type": "Container",
            "width": "100vw",
            "height": "100vh",
            "items": [{
                "type": "TouchWrapper",
                "onPress": [{
                    "type": "SetValue",
                    "property": "display",
                    "value": "none"
                }],
                "item": {
                    "type": "Text",
                    "text": "Hide me"
                }
            }]
        }]
    }
}

Regards,

Alex

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.