RecordDetailsPlugin class is a DataTable plugin that allows expanding and collapsing rows to display additional details within the DataTable. It provides functionality to add expand/collapse buttons to utility columns and handle expand/collapse events.
T
The type of data in the DataTable rows.
See also :
public void RecordDetailsPlugin(CellRenderer<T> cellRenderer)
RecordDetailsPlugin with the provided cell renderer.
cellRenderer
The cell renderer used to render details content.
public void RecordDetailsPlugin(RecordDetailsRenderer<T> cellRenderer)
RecordDetailsPlugin with the provided cell renderer.
cellRenderer
The cell renderer used to render details content.
public void RecordDetailsPlugin(CellRenderer<T> cellRenderer, Supplier<Icon<?>> expandIcon, Supplier<Icon<?>> collapseIcon)
RecordDetailsPlugin with the provided cell renderer and custom expand and collapse icons.
cellRenderer
The cell renderer used to render details content.
expandIcon
A supplier of the expand icon.
collapseIcon
A supplier of the collapse icon.
public void RecordDetailsPlugin(RecordDetailsRenderer<T> cellRenderer, Supplier<Icon<?>> expandIcon, Supplier<Icon<?>> collapseIcon)
RecordDetailsPlugin with the provided cell renderer and custom expand and collapse icons.
cellRenderer
The cell renderer used to render details content.
expandIcon
A supplier of the expand icon.
collapseIcon
A supplier of the collapse icon.
public boolean requiresUtilityColumn()
true since it adds expand/collapse buttons to utility columns.
true since this plugin requires a utility column.
public Optional<List<HTMLElement>> getUtilityElements(DataTable<T> dataTable, RowCell<T> cell)
dataTable
The DataTable to which this plugin is applied.
cell
The cell information containing the cell content and metadata.
An optional list of utility elements, empty if none.
public void onHeaderAdded(DataTable<T> dataTable, ColumnConfig<T> column)
dataTable
The DataTable to which this plugin is applied.
column
The column configuration to which the header is added.
public void onBeforeAddHeaders(DataTable<T> dataTable)
dataTable
The DataTable to which this plugin is applied.
public void handleEvent(DominoEvent event)
event
The table event to be handled.
public DivElement getDetailsElement()
The details element.
public TDElement getTd()
The TD element.
public TableRowElement getTr()
The TR element.
public void applyStyles(RowCell<T> cellInfo)
cellInfo
The cell information containing the cell content and metadata.
public void setupColumn(ColumnConfig<T> column)
column
The column configuration to set up.