@syncfusion/ej2-grids
Version:
Feature-rich JavaScript datagrid (datatable) control with built-in support for editing, filtering, grouping, paging, sorting, and exporting to Excel.
46 lines (45 loc) • 1.57 kB
TypeScript
import { Column } from '../models/column';
import { Cell } from '../models/cell';
import { ICellRenderer } from '../base/interface';
import { CellRenderer } from './cell-renderer';
import { GroupedData } from '../services/group-model-generator';
/**
* GroupCaptionCellRenderer class which responsible for building group caption cell.
*
* @hidden
*/
export declare class GroupCaptionCellRenderer extends CellRenderer implements ICellRenderer<Column> {
cellUid: number;
element: HTMLElement;
/**
* Function to render the cell content based on Column object.
*
* @param {Cell} cell - specifies the cell
* @param {Object} data - specifies the GroupedData
* @returns {Element} returns the element
*/
render(cell: Cell<Column>, data: GroupedData): Element;
}
/**
* GroupCaptionEmptyCellRenderer class which responsible for building group caption empty cell.
*
* @hidden
*/
export declare class GroupCaptionEmptyCellRenderer extends CellRenderer implements ICellRenderer<Column> {
element: HTMLElement;
/**
* Function to render the cell content based on Column object.
*
* @param {Cell} cell - specifies the cell
* @param {Object} data - specifies the Object
* @param {string} data.field - Defines the field
* @param {string} data.key - Defines the key
* @param {number} data.count - Defines the count
* @returns {Element} returns the element
*/
render(cell: Cell<Column>, data: {
field: string;
key: string;
count: number;
}): Element;
}