All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dominokit.domino.ui.datatable.CellRenderer Maven / Gradle / Ivy

package org.dominokit.domino.ui.datatable;

import elemental2.dom.HTMLTableCellElement;
import elemental2.dom.Node;

@FunctionalInterface
public interface CellRenderer {
    Node asElement(CellInfo cellInfo);

    class CellInfo{
        private final TableRow tableRow;
        private final HTMLTableCellElement element;

        public CellInfo(TableRow tableRow, HTMLTableCellElement element) {
            this.tableRow = tableRow;
            this.element = element;
        }

        public TableRow getTableRow() {
            return tableRow;
        }

        public HTMLTableCellElement getElement() {
            return element;
        }

        public T getRecord(){
            return tableRow.getRecord();
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy