The document discusses user interface components built with React that support authentication and interaction with various user types and environments. It details features such as content exploration, file management (including upload, download, rename, share, and delete), and document preview capabilities. Additionally, it provides code snippets for integrating these functionalities with the Box platform using JavaScript.
Introduction to React UI components and their compatibility with JWT/OAuth for authentication. Supports mobile and non-mobile environments.
Introduction to token management techniques including Token Downscoping and Token Exchange with Box Node SDK.
Presentation of UI elements such as file explorer capabilities including preview, download, rename, share, and delete functionality.Instructions and code snippets for creating a Content Explorer element utilizing Box APIs to manage content.
Overview of content picker functionalities and implementation to select and manage files through Box.
Description of content preview functionalities such as downloading, printing, and user annotation features.
Introduction to content uploading capabilities that allow users to upload files via Box API.
Presentation of a demo and GitHub source link for further exploration of the content discussed.
User interface componentsbuilt
with React (JavaScript library).
Authentication and token agnostic:
Works with JWT / OAuth.
User type agnostic: Works with
app, managed, and unmanaged
users.
2
3.
3
Works with bothmobile (through
React Native) and non-mobile
environments.
Responsive design implementation
to function in any size /
environment.
base_explorer
Ability to viewfiles and folders
item_preview
Preview file contents (Content Preview)
item_download
Download files and folders
item_rename
Rename files and folders
item_share
Provide a share button option
item_delete
Ability to delete files and folders
9
10.
<div class='container' style='height:600px'></div>
<scriptsrc='https://cdn01.boxcdn.net/platform/elements/1.0.2/en-US/explorer.js'></script>
<script type='text/javascript'>
var folderId = '34007816377';
var accessToken = '1!Cf1gy8gP59bHZBoxwJVd3rXeKs6...';
var contentExplorer = new Box.ContentExplorer();
contentExplorer.show(folderId, accessToken, {
container: '.container'
})
</script>
Creating a Simple Content Explorer Element
base_picker
Ability to selectfiles and folders
item_share
Adjust share settings for files and
folders
item_upload
Include ability to upload new content
(Content uploader)
13
14.
<div class='container' style='height:600px;'></div>
<script src='https://cdn01.boxcdn.net/platform/elements/1.0.2/en-US/picker.js'></script>
<script type='text/javascript'>
var folderId = '34007816377';
var accessToken = '1!mgMlen0nWaJvCOeUTRw1w-ADO1-WvW8jsr...';
var filePicker = new Box.FilePicker();
filePicker.show(folderId, accessToken, {
container: '.container'
})
</script>
Creating a Simple Content Picker Element
base_preview
Ability to previewfiles
item_download
Button available to download the file
annotation_edit
Users can edit annotations
annotation_view_all
Allow users to view all annotations
annotation_view_self
Allow users to only view their own
annotations
17
18.
<script src='https://cdn01.boxcdn.net/platform/preview/1.2.1/en-US/preview.js'></script>
<div class='container'style='height:400px; width:100%;'></div>
<script type='text/javascript'>
var fileId = '204496637878';
var accessToken = '1!ODmIRfdbEVZBB-IG4Pv2TWMvqog7jbJvnSEdgtJ-qlw708UXK-i...';
var preview = new Box.Preview();
preview.show(fileId, accessToken, {
container: '.container',
showDownload: true
});
</script>
Creating a Simple Content Preview Element