Implements

Constructors

Accessors

  • get expanded(): undefined | boolean
  • This view has children and is expanded (by default) or not. This will be overridden by user config.

    Returns undefined | boolean

  • set expanded(expanded): void
  • This view has children and is expanded (by default) or not. This will be overridden by user config.

    Parameters

    • expanded: undefined | boolean

    Returns void

  • get getContents(): ((path: string) => Promise<ContentsWithRoot>)
  • Method return the content of the provided path This ideally should be a cancellable promise. promise.cancel(reason) will be called when the directory change and the promise is not resolved yet. You must also return the current directory information alongside with its content.

    Returns ((path: string) => Promise<ContentsWithRoot>)

  • get order(): undefined | number
  • The view order. If not set will be natural sorted by view name.

    Returns undefined | number

  • set order(order): void
  • The view order. If not set will be natural sorted by view name.

    Parameters

    • order: undefined | number

    Returns void

  • get params(): undefined | Record<string, string>
  • Custom params to give to the router on click If defined, will be treated as a dummy view and will just redirect and not fetch any contents.

    Returns undefined | Record<string, string>

  • set params(params): void
  • Custom params to give to the router on click If defined, will be treated as a dummy view and will just redirect and not fetch any contents.

    Parameters

    • params: undefined | Record<string, string>

    Returns void