material-popup-menu / com.github.zawadz88.materialpopupmenu / MaterialPopupMenuBuilder / section

section

fun section(init: MaterialPopupMenuBuilder.SectionHolder.() -> Unit): Unit

Adds a new section to the popup menu.

Sections are separated with a divider from each other and must contain at least one item. Section titles are optional.

Parameters

init - block containing section definition