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

SectionHolder

class SectionHolder

Holds section info for the builder. This gets converted to MaterialPopupMenu.PopupMenuSection.

Constructors

<init>

SectionHolder()

Holds section info for the builder. This gets converted to MaterialPopupMenu.PopupMenuSection.

Properties

title

var title: CharSequence?

Optional section holder. null by default. If the title is not null it will be displayed in the menu.

Functions

customItem

fun customItem(init: MaterialPopupMenuBuilder.CustomItemHolder.() -> Unit): Unit

Adds a custom item to the section.

item

fun item(init: MaterialPopupMenuBuilder.ItemHolder.() -> Unit): Unit

Adds an item to the section.

toString

fun toString(): String