@nextcloud/viewer
    Preparing search index...

    Function canView

    • Whether the viewer can open the given nodes.

      Answers what clicking them would do without opening anything, for a caller that has to decide whether to offer the viewer at all — a "View" button in a sidebar, say. Only files are supported, folders never match, and a set of nodes matches when one handler takes all of them.

      Parameters

      • nodes: INode | INode[]

        The node, or nodes, to test the handlers against

      Returns boolean