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

Annotations not working for box-ui-elements

New post

Comments

2 comments

  • Peter Christensen

    HI 

    Currently to use the annotations directly via CDN there are a couple of extra steps. See this excellent Blog post for more detail

    https://medium.com/box-developer-blog/how-to-use-annotations-in-box-ui-previewer-b0b6b5ae47e4

    Best regards, Peter Christensen, Platform Solutions Engineer, Box

    0
    Comment actions Permalink
  • Rui Barbosa

    Hi Ayush,

    This looks like a duplicate of this post, and I have missed this one.

    For reference to others I'll also duplicate the answer here:

    There is another example using REACT on this article, and I've just updated it to include a preview with annotations.

    Check out the GitHub repo.

    Please note that I'm using a really old version of node and the dependencies are messy.

    Also make sure you update the hard coded and invalid token with a fresh one from your app console in the app.js file.

    The file to preview is also hard coded so make sure you upload a file and use you own file id in the app.js file.

    Hope this helps, cheers.

    Here is a screen shot:

    0
    Comment actions Permalink

Please sign in to leave a comment.