# Toggle drawer

The **Toggle Drawer** action node opens or closes the selected [drawer](/reference/apps/ui/views/drawer.md).

{% hint style="info" %}
An example setup of Toggle Drawer is showcased in our [Showroom](https://showroom.appfarm.app/action-nodes/toggle-drawer)! You may view a demo, as well as access the setup in Appfarm Create. If you do not have access, you may register [here](https://showroom.appfarm.app/sign-up).
{% endhint %}

## Settings

### Toggle Mode

Select the state you wish to apply to the drawer. **Toggle** will open a closed drawer and close an open draw.

* Toggle - default
* Open
* Close

### Drawer

Select the drawer you wish to alter. If a drawer has been designated as the **Main Drawer** in [App Settings](/reference/apps/app-settings.md), it will be selected by default.


---

# 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.appfarm.io/library/action-nodes/toggle-drawer.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.
