Welcome to the new Box Support website. Check out all the details here on what’s changed.

ContentPreview - specify version

New post

Comments

2 comments

  • Jason Hada

    I was close, the answer is 

     const fileOptions = {
            [selectedDocument.boxFileId]: { fileVersionId: version?.boxVersionId },
          };
          render(
            <ContentPreview          
              hasHeader
              fileId={selectedDocument.boxFileId}
              fileOptions={fileOptions}
              token={token}
              language={language}
              messages={messages}
            />,
            container
          );
    0
    Comment actions Permalink
  • Alex Novotny

    Thank you for posting the answer to your own questions. 

    Cheers

    0
    Comment actions Permalink

Post is closed for comments.