Free Text Column Technical Reference

Summary

  • The FreeTextColumnAPI provides run time access to the Free Text Column Module
  • It can be used to update Free Text Columns with new values programatically

Free Text Column State

The Free Text Column State contains a collection of FreeTextColumn objects:

PropertyDescription
FreeTextColumnsCollection of Free Text Columns

Free Text Column

A FreeTextColumn FreeTextColumn object is defined as follows:

PropertyDescriptionDefault
ColumnIdId of Column
DefaultValueInitial value to use for each cell in the Column
FreeTextColumnSettingsAdditional optional properties for Column (e.g. filterable, resizable)
FreeTextStoredValuesCollection of Stored Values to aplly in the Column
FriendlyNameFriendly Name to use to refer to Column; if unset ColumnId is used
TextEditorCell editor to use when editing a string Free Text Column'Inline'
IsReadOnlySets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')

Free Text Stored Value

The FreeTextColumn object includes an array of FreeTextStoredValue defined as follows:

PropertyDescription
FreeTextValue to store in the cell
PrimaryKeyPrimary Key Column value for the row

Hint

Free Text Stored Values will typically be added by users at run-time, rather than set at design-time

Free Text Column Settings

The freeTextColumnSettings property is of type FreeTextColumnSettings which is defined as follows:

PropertyDescriptionDefault
AggregatableWhether Column can be used in an aggregation when groupingfalse
ColumnTypesCustom column types added to AG Grid Column Types when object is created
DataTypeExpression's return value DataType, only mandatory property
FilterableWhether Column is filterablefalse
GroupableWhether Column can be groupedfalse
HeaderToolTipTooltip to show in the Column Header (not cells)
PivotableWhether Column can be used when grid is in pivot modefalse
ResizableWhether Column can be resized (by dragging column header edges)false
SortableWhether Column is sortablefalse
SuppressMenuWhether if no menu should be shown for this Column header.false
SuppressMovableWhether if this Column should be movable via draggingfalse
WidthPreferred (pixel) Column Width; if unset, calculated dynamically by AG Grid

Free Text Column API

Full programmatic access to Free Text Columns is available in Free Text Column API.

This enables Free Text Columns to be created, edited, cloned, deleted and shared programmatically.

MethodDescription
addFreeTextColumn(freeTextColumn)Adds new FreeTextColumn to Adaptable State
deleteFreeTextColumn(columnId)Deletes FreeTextColumn with given ColumnId from Adaptable State
editFreeTextColumn(freeTextColumn)Edits existing FreeTextColumn in Adaptable State
getFreeTextColumnById(id)Retrieves FreeTextColumn by the technical ID (from FreeTextColumnState)
getFreeTextColumnForColumnId(columnId)Gets FreeText Column, if any, for given ColumnId
getFreeTextColumns()Gets all FreeTextColumns in Adaptable State
getFreeTextColumnState()Retrieves FreeTextColumn section of Adaptable State
getFreeTextColumnValueForRowNode(freeTextColumn, rowNode)Retrieves a Free Text Column value for a given row node
openFreeTextColumnSettingsPanel()Opens Settings Panel with Free Text Column section selected and visible
setStoredValue(columnId, storedValue)Sets FreeTextStoredValue for the FreeTextColumn with the given ColumnId (replaces existing one if exists)
setStoredValues(columnId, storedValues, replaceAction)Sets Stored Values to the FreeTextColumn with the given ColumnId