Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 2.06 KB

File metadata and controls

34 lines (29 loc) · 2.06 KB

Note: The Open With UI Element works only with server generated app user tokens. For more information on this element, see this documentation.

var ContentOpenWith = require('./ContentOpenWith').default;

<IntlProvider locale="en">
    <ContentOpenWith
        features={FEATURES}
        fileId={FILE_ID}
        token={TOKEN}
    />
</IntlProvider>

Screenshot

---

Props

Prop Type Default Description
fileId* string The id of the file to preview.
token* string See the developer docs.
boxToolsInstallUrl string Box's install instructions This URL will be used instead of the default Box installation instructions which are linked in the Install Box Tools to open this file on your desktop message. 
boxToolsName string Box Tools This string will replace the name of Box Tools in the Install Box Tools to open this file on your desktop message. 
dropdownAlignment string left or right Determines the dropdown's alignment to the Open With button. 
language string en-US See the Internationalization section
messages Map<string, string> See the Internationalization section
onExecute Function A callback that executes when an integration invocation is attempted. 
requestInterceptor function See the developer docs.
responseInterceptor function See the developer docs.