Skip to main content

grid-tabulator

Home > @genesislcap/grid-tabulator

grid-tabulator package​

Classes​

Class

Description

GridTabulator

(ALPHA)

GridTabulatorCell

The GridTabulator Cell element.

GridTabulatorClientSideDatasource

(ALPHA) The Genesis Datasource element, for client-side data fetching and used exclusively by the GridTabulator element.

GridTabulatorColumn

The GridTabulator Column element.

Enumerations​

Enumeration

Description

FormatterTypes

(ALPHA) Enumeration of formatter types for grid-tabulator.

GridCSSVars

All official Tabulator CSS variables

GridTabulatorCellEditorTypes

The available grid-tabulator Editor Types

GridTabulatorCellRendererTypes

The available grid-tabulator Renderer Types

GridTabulatorTheme

The available grid-tabulator themes

Functions​

Function

Description

actionFormatter(cell, formatterParams)

Formatter that displays an action button in the cell. Styled to match grid-pro action renderer.

actionsMenuFormatter(cell, formatterParams)

Formatter that displays a dropdown menu of actions in the cell. Styled to match grid-pro actions-menu renderer.

booleanFormatter(cell, formatterParams)

Formatter that displays boolean values using a checkbox component. Styled to match grid-pro boolean renderer.

convertToKebabCase(str)

(ALPHA) Convert a string to kebab case Example: convertToKebabCase('helloWorld') // 'hello-world'

dateTimeValueFormatter({ value })

Format a date time value to a readable string.

dateValueFormatter({ value })

Format a date value.

editableFormatter(cell, formatterParams)

Formatter that displays an editable cell with validation state

formatDateExtra(epoch)

Format am epoch value to a readable ISO date string.

foundationGridTabulator(overrideDefinition)

(ALPHA) The Foundation grid-tabulator

getColumnType(metadataType)

Get the column type based on the metadata type.

getDataTestId(dataTestId, rowData)

(ALPHA) Resolves a dataTestId value that can be either a string or a function

getFilterByFieldType(type)

Get the filter type based on the field type.

getFilterParamsByFieldType(type)

Get the filter params based on the field type.

mergeAndDedupColDefWithColumnState(colDefs, columnState)

(ALPHA) Merges and dedupes column definitions with column state

selectFormatter(cell, formatterParams)

Formatter that displays a select component with options. Returns a wrapped div containing the select, similar to boolean.formatter.

textFormatter(cell, formatterParams)

Text formatter for customized display of values. Styled to match grid-pro text renderer.

themeFontsId(themeName)

Get the Fonts ID for the theme's name

themeTokenMapClassname(themeName)

Get the token map class name for the grid-tabulator themes

themeTokenMapCSS(themeName, tokenMap)

Get the CSS for the theme's token map

Interfaces​

Interface

Description

ActionFormatterParams

(ALPHA) Parameters for the action formatter.

actionClick: Callback function triggered when the action button is clicked.

actionName: The name or label of the action button.

appearance: The appearance style of the action button.

dataTestId: The data-test-id attribute value to be used for E2E testing.

isDisabled: Function to determine whether the action button should be disabled for a specific row.

uniqueFieldName: A unique field name used to identify the action button for E2E testing.

prefix: The prefix to use for the button element, e.g., 'foundation', 'zero', 'rapid'. Defaults to 'foundation' if not specified.

actionButtonStyle: Optional styling for the action button.

contentTemplate: Used to render some arbitrary content inside the action button.

ActionsMenuFormatterParams

(ALPHA) Parameters for the actions menu formatter

actions: The array of actions to display in the menu.

prefix: The prefix to use for the actions-menu element, e.g., 'foundation', 'zero', 'rapid'.

menuName: Custom name for the menu button (if not set, will use foundation: '⋮' or other: '+')

isVertical: Optional flag to display the menu vertically. Default is false.

buttonAppearance: Optional appearance for the button that opens the menu.

dataTestId: Data test ID for testing

BooleanFormatterParams

(ALPHA) Parameters for the boolean formatter

isDisabled: Function to determine whether the checkbox should be disabled for a specific row

dataTestId: Data test ID for testing

prefix: The prefix to use for the checkbox element, e.g., 'foundation', 'zero', 'rapid'. Defaults to 'foundation' if not specified.

CellRendererParams

Parameters for custom cell renderers

EditableFormatterParams

(ALPHA) Parameters for the editable formatter

value: The raw value to be displayed

data: The row data containing the current cell

field: The field name in the data object

cssClass: Optional CSS class to apply to the text

nullText: Text to display for null/undefined values

dataTestId: Data test ID for testing

icon: Icon to display for edit action

prefix: The prefix to use for element classes and components, e.g., 'foundation', 'zero', 'rapid'.

RowDataTransaction

Transaction object to handle row data updates.

SelectFormatterParams

(ALPHA) Parameters for the select formatter

options: Array of options for the select

nullText: Text to display for null/undefined values

dataTestId: Data test ID for testing

prefix: The prefix to use for element classes, e.g., 'foundation', 'zero', 'rapid'. Defaults to 'foundation' if not specified.

onChange: Optional callback when the selection changes

TextFormatterParams

(ALPHA) Parameters for the text formatter

specialValue: Optional special value that should be highlighted (like 2012 in the Year example)

specialColor: Optional color for the highlighted special value

specialFontWeight: Optional font weight for the highlighted special value

prefix: Optional prefix for any custom elements used in formatting

dataTestId: Optional data-test-id for testing purposes

nullText: Optional text to display when the value is null or undefined

Variables​

Variable

Description

criteriaDelimiter

(ALPHA) Delimiter for criteria in the datasource

criteriaJoin

(ALPHA) Join operator for criteria in the datasource

DEBOUNCED_RESIZE_TIME

(ALPHA) Time in milliseconds to debounce resize events

defaultGridTabulatorConfig

The default grid-tabulator configuration.

EDITED_COLUMN_FIELD

(ALPHA) The special column field name for marking a cell as edited

ERROR_COLUMN_FIELD

(ALPHA) The special column field name for marking a cell as having an error

formatters

(ALPHA) Zero formatters for Tabulator grid

foundationGridTabulatorComponents

All grid-tabulator components.

gridTabulatorErrorNames

(ALPHA) Error types for grid-tabulator

gridTabulatorEventNames

(ALPHA) Event names for grid-tabulator

gridTabulatorShadowOptions

The grid-tabulator component registration.

gridTabulatorStyles

The styles for the grid-tabulator component

gridTabulatorTemplate

The template for the grid-tabulator component.

logger

Logger for the grid-tabulator package

tabulatorExternalStockStyles

External styles for the Tabulator grid.

tabulatorThemeSimpleCSS

External styles for the Tabulator grid.

Type Aliases​

Type Alias

Description

CellRendererFunc

Function type for cell renderer

ColumnDefinition

(ALPHA) Extended Tabulator Column Definition with tweaked formatter type and formatterParams

FormatterParams

(ALPHA) Extended FormatterParams type that includes all of our custom formatter parameter interfaces

GridTabulatorCaseType

(ALPHA) The case types supported for header formatting

Options

(ALPHA) Extended Tabulator Options with custom formatters