Column Menu Default Structure

Summary

  • AdapTable provides a default menu structure for the Column Menu (column header menu)
  • We describe it in detail here so that developers can easily move or remove items

AdapTable appends a large number of menu items to the AG Grid Column Menu.

The items available for a given column depend on a number of factors including: the column’s data type, whether it is calculated / free text / sparkline, layout editability, filters, entitlements, and other state.

By default AdapTable groups its items into six logical blocks.

Note

  • Only the first block is separated from the rest by a menu divider
  • The other blocks appear consecutively (then AG Grid items follow).

Developers can use the customColumnMenu property in Column Menu Options to reorder, restructure, or remove any of these items (and to add custom items).

Caution

  • This page lists all Column Menu items AdapTable can provide and their default arrangement
  • The menu displayed varies according to Entitlements, module visibility, and column / layout conditions
  • When a group has only one visible child, AdapTable promotes that child to the root (and removes the group)

Calculated Column

Root-level item (no parent group):

LabelNameModuleWhen displayed
Edit Calculated Columncalculated-column-editCalculated ColumnCalculated column

UI Components

Settings Panel

From Settings Panel:

LabelNameWhen displayed
Open Settings Panelsettings-panel-openModule visible

Dashboard

From Dashboard. When more than one item is visible, they are grouped under:

LabelNameType
Dashboarddashboard-groupParent
LabelNameWhen displayed
Configuredashboard-configureModule editable
Expanddashboard-expandDashboard has tabs and is collapsed
Collapsedashboard-collapseDashboard has tabs and is expanded
Dockdashboard-dockDashboard is floating
Floatdashboard-floatDashboard is docked and floating is allowed
Hidedashboard-hideDashboard is visible
Showdashboard-showDashboard is hidden

Column Filter (filter actions)

When the column already has a column filter, Clear Filter and Suspend / Unsuspend are wrapped under a root parent:

LabelNameModuleWhen displayed
Filtercolumn-filter-groupColumn FilterA Column Filter exists on the column
Clear Filtercolumn-filter-clearColumn FilterChild of Filter
Suspend Filter / Unsuspend Filtercolumn-filter-suspend / column-filter-unsuspendColumn FilterChild of Filter

Note

  • Show Filter Bar / Hide Filter Bar (column-filter-bar-show / column-filter-bar-hide) are not in this group
  • They appear under Grid (see below) when the quick filter bar is available

Styling

Format Column, Styled Column, and Flashing Cell items are nested under a Styling parent:

LabelNameType
Stylingstyling-groupParent

Child order in code: Format Column items → Styled Column items → Flashing Cell items.

Format Column

From Format Column. When Create and Edit (or Show Current) are both visible, they are wrapped under a parent labelled Format Column (internal name menu-group).

LabelNameWhen displayed
Create Format Columnformat-column-addModule editable; column is not a sparkline
Edit Format Columnformat-column-editExactly one format column targets this column
Show Currentformat-column-editMore than one format column targets this column (opens Format Column screen)

Styled Column

From Styled Column. Items are listed flat under Styling (not grouped per style type).

When a styled column already exists on the column (and is not read-only), a single Edit … item is shown (styled-column-*-edit — label reflects the type, e.g. Edit Gradient Style).

When no styled column exists, Create … items depend on column.dataType (module editable; not a tree column):

Data typeCreate menu items (styled-column-*-add)
numberGradient Column, Percent Bar, Bullet Chart, Range Bar, Rating Column, Badge Style, Icon Column
textBadge Style, Icon Column
textArray, numberArrayBadge Style only

Sparkline columns (numberArray with sparkline): Create / Edit Sparkline Column (styled-column-sparkline-add / styled-column-sparkline-edit) when sparklines are enabled and the column qualifies — handled before the generic branch above.

See the Styled Column handbook pages for each style type.

Flashing Cell

From Flashing Cell:

LabelNameWhen displayed
Add Flashing Cellflashing-cell-addModule editable; not calculated / tree column; no flashing definition in scope for column
Delete Flashing Cellflashing-cell-deleteFlashing definition already applies to column

Grid

Layout, filter bar visibility, selection, Cell Summary, Charting, Data Import, System Status, and Grid Info are nested under Grid (grid-group).

LabelNameModuleWhen displayed
Gridgrid-groupWhen any child is visible
Edit Layoutlayout-editLayoutModule editable; layout not read-only
Show Filter Bar / Hide Filter Barcolumn-filter-bar-show / column-filter-bar-hideColumn FilterQuick filter available; module editable; Adaptable filtering on
Selectselect-groupWhen any selection child is visible (see below)
See Cell Summarycell-summary-showCell SummaryNumeric column; module visible
Manage Chartschart-showChartingModule editable; at least one chart definition exists
Import Datadata-importData ImportModule visible
Show System Statussystem-status-showSystem StatusModule visible
Grid Infogrid-info-showGrid InfoModule visible

Select

Range-selection items are created by Layout but grouped under Select (select-group) inside Grid.

The Child order is: Grid (select-grid-group) then Column (select-column-group).

LabelNameType
Selectselect-groupParent
Gridselect-grid-groupParent
Columnselect-column-groupParent
LabelNameWhen displayed
Select Gridlayout-grid-selectgridApi.isGridRangeSelectable()
Select Columnlayout-column-selectGrid range selectable; no existing cell selection
Select Column (Preserve Selection)layout-column-select-preserveGrid range selectable; cells already selected
Select Column (Reset Selection)layout-column-select-resetGrid range selectable; cells already selected

Note

  • When a parent has only one visible child, AdapTable promotes that child (see Caution above)
  • For example, if only Select Grid is available, you may see SelectSelect Grid with no Grid / Column sub-groups
  • Child order inside Grid (after Select): Cell Summary, Charting, Data Import, System Status, Grid Info

Column

Column-specific layout actions, Free Text, Custom Sort, Plus Minus, and Column Info are nested under Column (column-group).

LabelNameModuleWhen displayed
Columncolumn-groupWhen any child is visible
Change Captionlayout-column-caption-changeLayoutModule editable; layout not read-only; not tree column
Hide Columnlayout-column-hideLayoutColumn is hideable
Edit Free Text Columnfree-text-column-editFree Text ColumnFree text column; module editable
Create Custom Sort / Edit Custom Sortcustom-sort-add / custom-sort-editCustom SortColumn sortable; module editable; no AG Grid custom comparer on column
Create Plus/Minus Ruleplus-minus-addPlus MinusNumeric column; module editable
Column Infocolumn-info-showColumn InfoModule visible; not tree column

Note

  • Change Caption and Hide Column are provided by Layout but appear under Column group in default structure
  • Range-selection items are also from Layout but appear under Select (inside Grid) — see above.