@nextcloud/files
    Preparing search index...

    Interface IColumn

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

    Implemented by

    Index

    Properties

    id: string

    Unique column ID

    render: (node: INode, view: IView) => HTMLElement

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

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

    Function used to sort INodes between them

    summary?: (node: INode[], view: IView) => 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