Skip to content

Menu Controller

Custom in-application menus driven by scripts.

Provides the means to surface script-driven choices to the user through cadwork's native menu UI and to capture the user's selection. The complement to utility_controller's prompts and dialogs when a list-of-options interaction fits better than a modal form.

Displays a simple menu.

Parameters:

Name Type Description Default
menu_items list[str]

The menu items.

required

Returns:

Type Description
str

The selected menu item.