The default implementation of an IRenderer.

Implements

Constructors

Properties

itemFactories: {
    file_size: () => HTMLSpanElement;
    is_selected: () => HTMLElement;
    last_modified: () => HTMLSpanElement;
    name: () => HTMLSpanElement;
} = ...

Factories for individual parts of the item.

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: RelativeTimeFormatStyle

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

    Returns void

  • Update size of item nodes, assuming that model has not changed.

    Parameters

    • node: HTMLElement
    • model: Contents.IModel
    • OptionalmodifiedStyle: RelativeTimeFormatStyle
    • OptionalcolumnsSizes: Record<"name" | "last_modified" | "is_selected" | "file_size", null | number>

    Returns void