Skip to content

Menu DSL

This page is the fast lookup for the public menu shape. It does not try to explain every runtime detail of sessions or invalidation strategy.

  • DaisyMenu
  • DaisyMenuSession
  • DaisyMenuPlatform
  • DaisyMenuClickContext
  • DaisyMenuRenderContext
fun menu(title: String, rows: Int = 3, block: DaisyMenuBuilder.() -> Unit): DaisyMenu
fun Player.openMenu(menu: DaisyMenu): DaisyMenuSession
  • slot(...)
  • item(...)
  • render { ... }
  • onClick(...)
  • onOpen { ... }
  • onClose { ... }
  • template { ... }
  • pagination(...)
  • A DaisyMenu is the immutable menu definition.
  • A DaisyMenuSession is the per-player runtime instance created after a player opens that menu.