Skip to content

Plugin menu ​

The declarative menu surface is owned by the plugin context. Register pages before commit and invalidate only after state changes. The native menu bridge is an internal engine implementation, not an author API.

3 entry points, 3 documented.

plugin.menu:RegisterPage ​

lua
plugin.menu:RegisterPage(definition)

Registers one declarative page and returns a handle for explicit invalidation.

PluginContext.lua

plugin.menu:Invalidate ​

lua
plugin.menu:Invalidate(pageId)

Requests a rebuild of one registered page after plugin-owned state changes.

PluginContext.lua

pageHandle:Invalidate ​

lua
pageHandle:Invalidate()

Requests a rebuild of this page after plugin-owned state changes.

PluginContext.lua

API reference generated from source.