ColumnMenuBuilder

fun interface ColumnMenuBuilder<C>

Shapes the column header menu. build receives the default sections for column and returns the sections to show: remove, reorder or add items as needed. Returning an empty list removes the menu for that column, together with its accessibility actions and its ⋮ button.

The same list feeds the dropdown and the header cell's accessibility custom actions, so the two never disagree.

The builder shapes the column-header menu only. The menu of a sticky group header (Sort and Ungroup) always shows its default items and is not customizable.

Type Parameters

C

column key type

Functions

Link copied to clipboard
abstract fun build(column: C, defaults: List<ColumnMenuSection>): List<ColumnMenuSection>