@nextcloud/files

    Class View

    Implements

    Index

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

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

      Returns undefined | true

    • get order(): undefined | number

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

      Returns undefined | number

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

    MMNEPVFCICPMFPCPTTAAATR