displaySnippet
Last updated
Last updated
Allows users to decide whether to show or hide a snippet modal on the screen.
Name | Description | Input Type | Default | Options | Required |
---|---|---|---|---|---|
snippet | The snippet to be shown or hidden. | String/Text | - | - | Yes |
show | To show or hide snippet. | Boolean | true | true, false | Yes |
effect | The animation effect of the snippet. | String | None | None, Fade, Slide | No |
Note: The page will be updated to show or hide the snippet.
In this example, we will show a snippet with slide effect.
First, we will need to have a snippet to display or hide. Create one under the Snippet tab if you don't have any yet. In this example, we will be using a snippet named Snippet1
.
Drag in a button, to show the snippet modal.
In the event press
of the button fill in the parameters as shown below for both buttons.
Try clicking the show button on either Preview or Compiled App, the snippet modal will be shown and covering the screen.
See also:
Components