The default implementation of an IRenderer.

Implements

Constructors

Properties

_modifiedColumnLastUpdate: WeakMap<HTMLElement, {
    date: string;
    style: RelativeTimeFormatStyle;
}> = ...

Register of most recent arguments for last modified column update.

Type declaration

  • date: string
  • style: RelativeTimeFormatStyle
itemFactories: {
    file_size: (() => HTMLSpanElement);
    is_selected: (() => HTMLElement);
    last_modified: (() => HTMLSpanElement);
    name: (() => HTMLSpanElement);
} = ...

Factories for individual parts of the item.

Type declaration

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 an item node to reflect the current state of a model.

    Parameters

    • node: HTMLElement

      A node created by [[createItemNode]].

    • model: Contents.IModel

      The model object to use for the item state.

    • Optional fileType: DocumentRegistry.IFileType

      The file type of the item, if applicable.

    • Optional translator: ITranslator
    • Optional hiddenColumns: Set<ToggleableColumn>
    • Optional selected: boolean
    • Optional modifiedStyle: RelativeTimeFormatStyle
    • Optional columnsSizes: Record<"name" | "last_modified" | "is_selected" | "file_size", null | number>

    Returns void