Context Menu Default Structure

Summary

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

AdapTable provides a large number of Menu Items which it appends to the Context Menu.

These Menu Items differ each time the Context Menu opens, based on the cell and column which was clicked.

AdapTable groups the Context Menu Items it provides into five sections (separated by menu dividers):

Note

A separator is provided between each section when that section has visible items

  1. Export
  2. Actions (cell / column actions from multiple modules)
  3. UI Components (Settings Panel and Dashboard)
  4. Editing (Smart Edit and Bulk Update)
  5. Grid & column related (Grid sub-menu and Column Info)

Caution

  • The list below shows all Context Menu items AdapTable can provide and how they are arranged by default (AgGridMenuAdapter.buildContextMenuDefaultStructure)
  • The menu displayed varies according to Entitlements, module visibility, and the nature / data type / editability of the cell and column
  • Explicit parent group names include export-group, column-filter-group, dashboard-group, edit-group, and grid-group

Export Section

This section contains export actions from the Export module.

Label (typical)Name (parent)ModuleWhen displayed
Exportexport-groupExportModule visible and column is not the row-group column

When more than one report menu is returned, AdapTable wraps them under a single parent labelled Export (export-group). A single visible report is shown without that parent.

The parent opens a sub-menu with one entry per available report (system reports plus any custom reports in state). Each report sub-menu lists formats, and each format lists destinations.

System reports

Report name (label)Menu name prefixWhen omitted
All Dataexport-all-dataNever (when Export is visible)
Current Layoutexport-current-layoutNever
Selected Dataexport-selected-dataGrid is not cell- or row-selectable

Note

This replaces older report names such as Current Data, Selected Cells, and Selected Rows — there is a single Selected Data report today

Formats and destinations

Formats (labels in the menu): Excel, VisualExcel, CSV, JSON.

Destinations depend on format:

FormatDestinations (labels)Typical menu suffix
ExcelDownload only-excel-download
VisualExcelDownload only-visualexcel-download
CSVDownload, Clipboard-csv-download, -csv-clipboard
JSONDownload, Clipboard-json-download, -json-clipboard

Leaf item names follow:

export-{report-name}-{format}-{destination}

(with spaces in report/format names replaced by hyphens and lower-cased — see ExportModule.getMenuItemName).

Deep Dive

Example Export menu tree (system reports)

Actions Section

Flat items and small auto-generated parents (when a module returns more than one item) from these modules, in this order:

Label (typical)NameModuleWhen displayed
Edit Calculated Columncalculated-column-editCalculated ColumnCalculated column; single selected cell; module editable
Add Notenote-addNotesNo note on cell; notes supported; single cell; not group row/column
Remove Notenote-removeNotesCell has a note
Show Notenote-showNotesCell has a note and showNoteAction is 'menu'
Add Commentcomment-addCommentsNo comment thread; comments supported in layout; single cell
Remove Commentcomment-removeCommentsCell has a comment thread
Show Commentcomment-showCommentsCell has a comment and showCommentAction is 'menu'
Filter on Cell Value(s)column-filter-on-cell-valueColumn FilterColumn filterable; Adaptable filtering on; no filter on column; single column selection
Clear Filtercolumn-filter-clearColumn FilterColumn already has a filter (see below)
Suspend Filter / Unsuspend Filtercolumn-filter-suspend / column-filter-unsuspendColumn FilterColumn has a filter
Clear Flashing Cellflashing-cell-clearFlashing CellCell is flashing (cell target)
Clear Flashing Rowflashing-row-clearFlashing CellRow is flashing (row target)
Clear Alertalert-clearAlertsCell or row highlighted by an alert
Broadcast …fdc3-broadcastFDC3Column configured for broadcast (label includes context type)
Raise …fdc3-raise-intentFDC3Column configured for raise intent (label includes intent type)

Note

  • When the column already has a filter, AdapTable returns Clear Filter and Suspend / Unsuspend items:
  • If both are visible, they are wrapped under a parent labelled Column Filter (column-filter-group)
  • When the column has no filter, a single Filter on Cell Value()s item is shown instead

UI Components Section

Settings Panel

From Settings Panel (SettingsPanelModule):

LabelNameWhen displayed
Open Settings Panelsettings-panel-openModule visible

Dashboard

From Dashboard (DashboardModule). When more than one dashboard 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

Editing Section

From Bulk Update and Smart Edit, combined under an Edit parent when both are visible (edit-group).

If only one applies, that item is promoted to the root (no Edit parent)

Caution

  • Smart Edit requires a numeric, non row-grouped column, single-column selection, and selected cells
  • Bulk Update works on any editable, non row-grouped column type with a suitable selection
LabelNameModuleWhen displayedType
Editedit-groupNumeric editable column with both items belowParent
Apply Bulk Updatebulk-update-applyBulk UpdateEditable column; cells selected; single columnChild (listed first under Edit)
Apply Smart Editsmart-edit-applySmart EditNumeric editable column; cells selected; single columnChild

Grid sub-menu

Layout, Cell Summary, Data Import, System Status, and Grid Info items are nested under a Grid parent (grid-group):

LabelNameModuleWhen displayed
Gridgrid-groupAlways (when any child is visible)
Clear Selected Cellslayout-clear-selectionLayoutCells or rows are selected
Select Gridlayout-select-allLayoutgridApi.isGridRangeSelectable()
Auto Sizelayout-auto-sizeLayoutAlways (within Layout items)
Edit Layoutlayout-editLayoutModule editable and current layout not read-only
Expand Aggregated Valuelayout-aggregated-viewLayoutPivot layout; single selected cell; pivot/number column rules
See Cell Summarycell-summary-showCell SummaryNumeric column; cell(s) selected
Import Datadata-importData ImportModule visible
Show System Statussystem-status-showSystem StatusModule visible
Grid Infogrid-info-showGrid InfoModule visible

Child order inside Grid matches AgGridMenuAdapter.getLayoutContextMenuStructure:

  • Layout (first selection actions, then other items)
  • Cell Summary
  • Data Import
  • System Status
  • Grid Info

Column Info

LabelNameModuleWhen displayed
Column Infocolumn-info-showColumn InfoModule visible (root item after Grid)