Installation
Box UI elements either through NPM or the Box CDN.Authentication
The UI Elements are designed in an authentication agnostic way so whether you are using UI Elements for users who have Box accounts (Managed Users) or non-Box accounts (App Users), UI Elements should work out of the box. The reason for this is that UI Elements only expect a “token” to be passed in for authentication, and Box provides two different ways to generate tokens - OAuth and JWT.Learn about selecting an authentication method
Sample HTML
Demo
File Selection Demo
Folder Selection Demo
File Selection + Preview Demo
File Selection as a popup
Access TokenThese demos may not fully function until you provide a valid access token. For
testing purposes, you can use your temporary developer token. This will need
to be updated under the JS tab in the demo.
API
Parameters
Options
Modal Options
Events
Keyboard Shortcuts
When the item grid has focus, either manually by clicking on it or programmatically via javascript or via the above mentionedautoFocus prop, the
following keyboard shortcuts will work if their corresponding operations are
applicable and allowed.
Scopes
If your application requires the end user to only be able to access a subset of the Content Picker functionality, you can use to appropriately downscope the Access Token to a resulting token that has the desired set of permissions, and can thus, be securely passed to the end user client initializing the Content Picker. Below are a set of UI Element-specific scopes to go alongside Downscoping. These allow developers to enable/disable UI controls on the Content Picker by configuring the appropriate scopes on the downscoped token. To learn more, see .Feature Scopes
Sample Scenarios
Custom actions
You can expand the actions in the More Options menu for files and folders in Content Explorer and Content Picker. Your custom options show when user clicks the ellipsis button. To customize the More Options menu, pass an array of custom actions toitemActions.
label, and the onAction callback function. You can filter the custom actions to appear only on a specific item type, by passing the file or folder value. The filter value is used for advanced filtering, for example by a specific file extension:
