The render interface for file browser listing options.

interface IRenderer {
    getCheckboxNode: ((node) => null | HTMLInputElement);
    createDragImage(node, count, trans, fileType?): HTMLElement;
    createItemNode(hiddenColumns?): HTMLElement;
    createNode(): HTMLElement;
    getNameNode(node): HTMLElement;
    handleHeaderClick(node, event): null | DirListing.ISortState;
    populateHeaderNode(node, translator?, hiddenColumns?): void;
    updateItemModified?(modified, modifiedDate, modifiedStyle): void;
    updateItemNode(node, model, fileType?, translator?, hiddenColumns?, selected?, modifiedStyle?): void;
}

Implemented by

Properties

getCheckboxNode: ((node) => null | HTMLInputElement)

Get the checkbox input element node.

Downstream interface implementations,such as jupyterlab-unfold, that don't support checkboxes should simply always return null for this function.

Type declaration

Returns

The checkbox node.

Methods

  • Update an item's last modified date.

    Parameters

    • modified: HTMLElement

      Element containing the file's last modified date.

    • modifiedDate: string

      String representation of the last modified date.

    • modifiedStyle: HumanStyle

      The date style for the modified column: narrow, short, or long

    Returns void