> ## Documentation Index
> Fetch the complete documentation index at: https://luau.limerence.biz/llms.txt
> Use this file to discover all available pages before exploring further.

# Submenu

> A nested popout that holds more controls.

Also has everything from [ElementHandle](/ui/classes/element-handle).

A nested popout container. Has all the same `Add*` methods as a [Section](/ui/classes/section). Use it to group related settings without crowding the main column.

|                |                                                      |
| -------------- | ---------------------------------------------------- |
| **Created by** | [Section:AddSubmenu](/ui/classes/section#addsubmenu) |

## Creation

```luau theme={null}
section:AddSubmenu(key: string?, label: string?): SubmenuHandle
```

***

## Open

```luau theme={null}
submenu:Open(position: UDim2?): ()
```

Open the popup from code (e.g. when the user clicks something custom).

***

## Adding controls

Same `Add*` methods as [Section](/ui/classes/section).
