Action Columns Technical Reference

Summary

  • Action Column Options is used to define Action Columns
  • The Action Column API provides run-time access to Action Columns

Action Column Options

The Action Column Options section of Adaptable Options is used to configure Action Columns.

PropertyDescriptionDefault
actionColumnsColumns which contain an AdapTable Button - used for performing Actionsundefined

Action Column

PropertyDescription
actionColumnButtonButton (or list of buttons) to display in the Column
actionColumnSettingsOptional properties to configure the Column (e.g. filterable, resizable)
columnIdMandatory 'Id'; if no value set for FriendlyName, this will also be Column name
friendlyNameHow Column appears in Column Header, Menus; if no value set, ColumnId is used
rowScopeWhich types of Rows should contain buttons (i.e. data, grouped, summary)

Action Column Settings

The Action Column Settings object provides configuration properties:

PropertyDescriptionDefault
resizableWhether Column can be resized (by dragging column header edges)true
suppressMenuWhether no menu should be shown for this Column header.false
suppressMovableWhether if this Column should be movable via draggingfalse
widthPreferred width (in pixels) for Column; if unset, calculated dynamically by AG Grid

Action Column Button

The button in the Action extends the Adaptable Button defined as follows:

PropertyDescription
buttonStyleStyle for Button - can be object or function that provides a ButtonStyle object
disabledFunction that disables / enables the button based on its evaluation result
hiddenFunction which sets whether Button is hidden
iconIcon for Button - can be object or function that provides a AdaptableIcon object
labelLabel for Button - can be string or function that provides string
onClickFunction to invoke when button is clicked
tooltipTooltip for Button - can be string or function that provides string

But it also contains a command property useful for wiring up Action Column Commands

PropertyDescription
commandCommand to assign to Action Column Button that displays a Row Form
adaptableContextCustom application Context provided in AdaptableOptions.adaptableContext

Action Column API

The Action Column API section of Adaptable API provides programmatic access to Action Columns:

MethodDescription
getActionColumnForColumnId(columnId)Returns Action Column with given Id
getActionColumns()Retrieves the Action Columns provided in Action Column Options