# displaySnippet

## Description

Displays or hides a snippet component in the application.

### Platform Supported

* Mobile
* Web

## Input / Parameter

| Name    | Description                                                                                                                        | Input Type | Default | Options     | Required |
| ------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------- | ------- | ----------- | -------- |
| snippet | The snippet component name to be used.                                                                                             | Text       | -       | -           | Yes      |
| show    | To show or hide snippet.                                                                                                           | Boolean    | false   | true, false | Yes      |
| overlay | To make sure that it precedes the current page. It works like [z-index](https://developer.mozilla.org/en-US/docs/Web/CSS/z-index). | Boolean    | true    | true, false | Yes      |

## Output

Note: The snippet will be displayed or hidden based on the action chosen.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/cordova/app/displaysnippet.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
