Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

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.