# States

### <mark style="color:purple;">Active Menus</mark>

Exposes a list of objects containing details on the currently active menus. Does not include default menus.

**Menus Object**

<mark style="color:$info;">**id**</mark>\
The ID of the active menu.

<mark style="color:$info;">**items**</mark>\
A list of item objects representing the menu's items. This contains useful data such as checkbox check states

<mark style="color:$info;">**trayId**</mark>\
The ID of the tray the menu is attached to, if any.

<mark style="color:$info;">**menuType**</mark>\
The type of menu. Can be `menuBar`, `contextMenu`, `dockMenu`, or `trayMenu`

<mark style="color:$info;">**selectors**</mark>\
A list of HTML selectors that will trigger a context menu, if any.

***

### <mark style="color:purple;">Clicked Menu</mark>

Populates with the menu object of the last clicked menu.

{% hint style="warning" %}
This only fires for "custom actions" - menu items without a default role assigned.
{% endhint %}

***

### <mark style="color:purple;">Clicked Menu Item ID</mark>

Populates with the menu item ID that was clicked.

{% hint style="warning" %}
This only fires for "custom actions" - menu items without a default role assigned.
{% endhint %}

***

### <mark style="color:purple;">Clicked Menu Item Label</mark>

Populates with the menu item label that was clicked.

{% hint style="warning" %}
This only fires for "custom actions" - menu items without a default role assigned.
{% endhint %}

***

### <mark style="color:purple;">Clicked Menu Checkbox Checked</mark>

If the clicked menu item was a checkbox, this will output the state of it.

***

### <mark style="color:purple;">Context Menu Opened</mark>

Populates with the menu object of the context menu that was last opened.

{% hint style="warning" %}
This will be empty if a default context menu is shown.
{% endhint %}

***

### <mark style="color:purple;">Error</mark>

Outputs errors from workflows.


---

# 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://deskifier.gitbook.io/deskifier/deskifier-bubble.io-docs/menu-element/states.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.
