T - the type of the data table recordspublic class RecordDetailsPlugin<T> extends Object implements DataTablePlugin<T>
| Constructor and Description |
|---|
RecordDetailsPlugin(CellRenderer<T> cellRenderer)
Creates an instance with custom renderer and default expand/collapse icons
|
RecordDetailsPlugin(CellRenderer<T> cellRenderer,
BaseIcon<?> collapseIcon,
BaseIcon<?> expandIcon)
Creates an instance with custom renderer and expand/collapse icons
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyStyles(CellRenderer.CellInfo<T> cellInfo) |
elemental2.dom.HTMLDivElement |
getElement() |
elemental2.dom.HTMLTableCellElement |
getTd() |
elemental2.dom.HTMLTableRowElement |
getTr() |
Optional<List<elemental2.dom.HTMLElement>> |
getUtilityElements(DataTable<T> dataTable,
CellRenderer.CellInfo<T> cell) |
void |
handleEvent(TableEvent event) |
void |
onBeforeAddHeaders(DataTable<T> dataTable)
This method will be called right before adding all columns headers elements to the table
|
void |
onHeaderAdded(DataTable<T> dataTable,
ColumnConfig<T> column)
This method will be called right after adding a column header element to the table
|
boolean |
requiresUtilityColumn() |
void |
setupColumn(ColumnConfig<T> column)
A hook method to customize the column of the expand/collapse icons
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinit, onAfterAddHeaders, onAfterAddTable, onAllRowsAdded, onBeforeAddRow, onBeforeAddTable, onBodyAdded, onRowAddedpublic RecordDetailsPlugin(CellRenderer<T> cellRenderer)
cellRenderer - the CellRendererpublic RecordDetailsPlugin(CellRenderer<T> cellRenderer, BaseIcon<?> collapseIcon, BaseIcon<?> expandIcon)
cellRenderer - the CellRenderercollapseIcon - BaseIconexpandIcon - BaseIconpublic boolean requiresUtilityColumn()
requiresUtilityColumn in interface DataTablePlugin<T>public Optional<List<elemental2.dom.HTMLElement>> getUtilityElements(DataTable<T> dataTable, CellRenderer.CellInfo<T> cell)
getUtilityElements in interface DataTablePlugin<T>dataTable - DataTablecell - CellRenderer.CellInfoOptional List of HTMLElements to be used as part of
the plugins utility column, elements returned from this method will be rendered as flex
items inside the utility cell.public void onHeaderAdded(DataTable<T> dataTable, ColumnConfig<T> column)
DataTablePluginonHeaderAdded in interface DataTablePlugin<T>dataTable - the DataTable we are attaching this plugin to.column - the ColumnConfig of the column we added the header for.public void onBeforeAddHeaders(DataTable<T> dataTable)
DataTablePluginonBeforeAddHeaders in interface DataTablePlugin<T>dataTable - the DataTable we are attaching this plugin to.public void handleEvent(TableEvent event)
handleEvent in interface TableEventListenerhandleEvent in interface DataTablePlugin<T>event - the TableEvent being receivedpublic elemental2.dom.HTMLDivElement getElement()
HTMLDivElement of this componentpublic elemental2.dom.HTMLTableCellElement getTd()
HTMLTableCellElement that contains the records detailspublic elemental2.dom.HTMLTableRowElement getTr()
HTMLTableRowElement that contains the records detailspublic void applyStyles(CellRenderer.CellInfo<T> cellInfo)
public void setupColumn(ColumnConfig<T> column)
column - ColumnConfigCopyright © 2019–2022 Dominokit. All rights reserved.