MenuContext

open class MenuContext

Functions

addChild
Link copied to clipboard
js
fun addChild(child: MenuChild): Boolean
custom
Link copied to clipboard
js
fun custom(build: RenderContext.() -> Unit)
Adds a custom fritz2-component to the menu.
fun custom(styling: Style<BoxParams>, build: RenderContext.() -> Unit)
Adds a custom fritz2-component to the menu.
divider
Link copied to clipboard
js
fun divider(styling: Style<BoxParams> = {})
Adds a MenuDivider to the menu.
entry
Link copied to clipboard
js
fun entry(build: MenuEntry.() -> Unit)
Configures and adds a MenuEntry to the menu.
fun entry(styling: Style<BoxParams>, build: MenuEntry.() -> Unit)
Configures and adds a MenuEntry to the menu.
header
Link copied to clipboard
js
fun header(text: String)
Configures and adds a MenuHeader to the menu.
fun header(styling: Style<BoxParams>, text: String)
Configures and adds a MenuHeader to the menu.
link
Link copied to clipboard
js
fun link(build: MenuLink.() -> Unit)
Configures and adds a MenuLink to the menu.
fun link(styling: Style<BoxParams>, build: MenuLink.() -> Unit)
Configures and adds a MenuLink to the menu.
submenu
Link copied to clipboard
js
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

MenuComponent
Link copied to clipboard
SubMenuComponent
Link copied to clipboard