header

fun header(text: String)

Configures and adds a MenuHeader to the menu.

Use the overloaded version of this method to specify additional styling.

Parameters

text

Text to be displayed in the header


fun header(styling: Style<BoxParams>, text: String)

Configures and adds a MenuHeader to the menu.

Parameters

styling

Style to be applied to the underlying component

text

Text to be displayed in the header