T - the type of the data table recordspublic static class CellRenderer.CellInfo<T> extends Object
| Constructor and Description |
|---|
CellInfo(TableRow<T> tableRow,
elemental2.dom.HTMLTableCellElement element)
Creates an instance with the row that the belongs to and the cell html element
|
| Modifier and Type | Method and Description |
|---|---|
elemental2.dom.HTMLTableCellElement |
getElement() |
T |
getRecord() |
TableRow<T> |
getTableRow() |
void |
setCellValidator(CellValidator cellValidator)
for editable cells set the validator to validate the cell value when edited
|
void |
setDirtyRecordHandler(DirtyRecordHandler<T> dirtyRecordHandler)
set the handler to update the dirty record
|
void |
updateDirtyRecord(T dirtyRecord)
For editable data table this will update the dirty record instance with the new fields values
in the row being edited
|
ValidationResult |
validate()
for editable cell this will validate the cell field
|
public elemental2.dom.HTMLTableCellElement getElement()
HTMLTableCellElement, the td elementpublic T getRecord()
public void updateDirtyRecord(T dirtyRecord)
dirtyRecord - T, the current dirty record instance in the table rowpublic ValidationResult validate()
ValidationResultpublic void setDirtyRecordHandler(DirtyRecordHandler<T> dirtyRecordHandler)
dirtyRecordHandler - DirtyRecordHandlerpublic void setCellValidator(CellValidator cellValidator)
cellValidator - CellValidatorCopyright © 2019–2022 Dominokit. All rights reserved.