MenuContext

open class MenuContext

Constructors

Link copied to clipboard
fun MenuContext()

Functions

Link copied to clipboard
fun addChild(child: MenuChild): Boolean
Link copied to clipboard
fun custom(build: RenderContext.() -> Unit)
fun custom(styling: Style<BoxParams>, build: RenderContext.() -> Unit)

Adds a custom fritz2-component to the menu.

Link copied to clipboard
fun divider(styling: Style<BoxParams> = {})

Adds a MenuDivider to the menu.

Link copied to clipboard
fun entry(build: MenuEntry.() -> Unit)
fun entry(styling: Style<BoxParams>, build: MenuEntry.() -> Unit)

Configures and adds a MenuEntry to the menu.

Link copied to clipboard
fun header(text: String)
fun header(styling: Style<BoxParams>, text: String)

Configures and adds a MenuHeader to the menu.

Link copied to clipboard
fun link(build: MenuLink.() -> Unit)
fun link(styling: Style<BoxParams>, build: MenuLink.() -> Unit)

Configures and adds a MenuLink to the menu.

Link copied to clipboard
fun submenu(    styling: BoxParams.() -> Unit = {},     value: Store<Boolean>? = null,     baseClass: StyleClass = StyleClass.None,     id: String? = null,     prefix: String = "submenu",     build: SubMenuComponent.() -> Unit): Boolean

Creates a submenu.

Inheritors

Link copied to clipboard
Link copied to clipboard