interface ColumnData {
    id: string;
    render: ((node: Node, view: View) => HTMLElement);
    sort?: ((nodeA: Node, nodeB: Node) => number);
    summary?: ((node: Node[], view: View) => string);
    title: string;
}

Implemented by

Properties

id: string

Unique column ID

render: ((node: Node, view: View) => HTMLElement)

The content of the cell. The element will be appended within

sort?: ((nodeA: Node, nodeB: Node) => number)

Function used to sort Nodes between them

summary?: ((node: Node[], view: View) => string)

Custom summary of the column to display at the end of the list. Will not be displayed if nothing is provided

title: string

Translated column title