@nextcloud/files
    Preparing search index...

    Class View

    Implements

    Index

    Constructors

    Accessors

    • get emptyView(): ((div: HTMLDivElement) => void) | undefined

      Custom implementation of the empty view. If set and no content is found for the current view, then this method is called with the container element where to render your empty view implementation.

      Returns ((div: HTMLDivElement) => void) | undefined

    • get expanded(): boolean | undefined

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

      Returns boolean | undefined

    • set expanded(expanded: boolean | undefined): void

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

      Parameters

      • expanded: boolean | undefined

      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 hidden(): true | undefined

      If set then the view will be hidden from the navigation unless its the active view.

      Returns true | undefined

    • get order(): number | undefined

      The view order. If not set will be natural sorted by view name.

      Returns number | undefined

    • set order(order: number | undefined): void

      The view order. If not set will be natural sorted by view name.

      Parameters

      • order: number | undefined

      Returns void

    • get params(): Record<string, string> | undefined

      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 Record<string, string> | undefined

    • set params(params: Record<string, string> | undefined): 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: Record<string, string> | undefined

      Returns void