README.md

July 10, 2024 · View on GitHub

Demo (Documentation)

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

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

Screenshot

---

Props

PropTypeDefaultDescription
fileId*stringThe id of the file to preview.
token*stringSee the developer docs.
boxToolsInstallUrlstringBox's install instructionsThis 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. 
boxToolsNamestringBox ToolsThis string will replace the name of Box Tools in the Install Box Tools to open this file on your desktop message. 
dropdownAlignmentstringleft or rightDetermines the dropdown's alignment to the Open With button. 
languagestringen-USSee the Internationalization section
messagesMap<string, string>See the Internationalization section
onExecuteFunctionA callback that executes when an integration invocation is attempted. 
requestInterceptorfunctionSee the developer docs.
responseInterceptorfunctionSee the developer docs.