1. Domino UI
  2. Data table
  3. Row marker
Top Marker Docs

Row marker

A DataTable plugin that adds row markers based on the provided MarkerColor function.

T

The type of data in the DataTable.

Examples

Row marker Mark the row with different color to indicate different record states.

API Docs: RowMarkerPlugin

Constructors

public void RowMarkerPlugin(MarkerColor<T> markerColor)
Creates a new RowMarkerPlugin with the specified marker color function.

markerColor

The function that determines the marker color for each row.

Public methods

public void onBeforeAddTable(DataTable<T> dataTable)
Check super implementation documentation.

Adds the CSS class for row markers to the DataTable before adding it.

dataTable

The DataTable to which this plugin is applied.

public void onRowAdded(DataTable<T> dataTable, TableRow<T> tableRow)
Check super implementation documentation.

Sets the marker style for the newly added row.

dataTable

The DataTable to which this plugin is applied.

tableRow

The newly added TableRow.

public void handleEvent(DominoEvent event)
Check super implementation documentation.

Handles row record updated events by updating the row marker style.

event

The table event to handle.

public int order()
Check super implementation documentation.

Specifies the order in which this plugin should be executed. It has the highest order value to ensure that it runs last.

Returns:

The order value, set to MAX_VALUE .

We are a group of passionate people who love what we do

Donate & Support Us