Interface ICellRenderer

a cell renderer for rendering a cell of specific column

interface ICellRenderer {
    template: string;
    render?(ctx, d, i, group): boolean | void | IAbortAblePromise<IRenderCallback>;
    update(node, d, i, group): void | IAbortAblePromise<void>;
}

Properties

Methods

Properties

template: string

template as a basis for the update

Methods

  • update a given node (create using the template) with the given data

    Parameters

    • node: HTMLElement

      the node to update

    • d: IDataRow

      the data item

    • i: number

      the order relative index

    • group: IOrderedGroup

      the group this row is part of

    Returns void | IAbortAblePromise<void>