UNPKG

handsontable

Version:

Handsontable is a JavaScript Data Grid available for React, Angular and Vue.

16 lines (15 loc) 669 B
import { fastInnerHTML } from "../../helpers/dom/element.mjs"; export const RENDERER_TYPE = 'html'; /** * @private * @param {Core} hotInstance The Handsontable instance. * @param {HTMLTableCellElement} TD The rendered cell element. * @param {number} row The visual row index. * @param {number} col The visual column index. * @param {number|string} prop The column property (passed when datasource is an array of objects). * @param {*} value The rendered value. */ export function htmlRenderer(hotInstance, TD, row, col, prop, value) { fastInnerHTML(TD, value === null || value === undefined ? '' : value, false); } htmlRenderer.RENDERER_TYPE = RENDERER_TYPE;