Skip to content

Latest commit

 

History

History
56 lines (52 loc) · 4.67 KB

File metadata and controls

56 lines (52 loc) · 4.67 KB
<IntlProvider locale="en">
    <ContentPicker
        features={FEATURES}
        rootFolderId={FOLDER_ID}
        token={TOKEN}
        {...PROPS}
    />
</IntlProvider>

Screenshot

---

Props

Prop Type Default Description
token* string See the developer docs.
autoFocus boolean See the developer docs.
cancelButtonLabel string See the developer docs.
canCreateNewFolder boolean true See the developer docs.
canSetShareAccess boolean true See the developer docs.
canUpload boolean true See the developer docs.
chooseButtonLabel string See the developer docs.
clearSelectedItemsOnNavigation boolean false Indicates whether or not selected state should be cleared after every navigation.
contentUploaderProps Object {} Props to be forwarded to the ContentUploader UI Element. See the developer docs.
currentFolderId string The current folder shown for the content picker. This should be a sub folder to the root folder.
defaultView string files See the developer docs.
extensions Array<string> [] See the developer docs.
initialPage number 1 See the developer docs.
initialPageSize number 50 See the developer docs.
isHeaderLogoVisible boolean true Indicates whether or not the Logo in the Header is shown.
isPaginationVisible boolean true Indicates whether or not the pagination buttons in the Footer are shown.
isTouch boolean See the developer docs.
language string See the Internationalization section
logoUrl string See the developer docs.
maxSelectable number Infinity See the developer docs.
messages Map<string, string> See the Internationalization section
onCancel function Callback function for when the cancel button is pressed.
onChoose function Callback function for when the choose button is pressed.
requestInterceptor function See the developer docs.
renderCustomActionButtons function Render prop that renders custom action buttons in the footer.
responseInterceptor function See the developer docs.
rootFolderId string 0 The root folder for the content picker.
sharedLink string See the developer docs.
sharedLinkPassword string See the developer docs.
showSelectedButton boolean true Indicates whether or not the selected button is shown.
sortBy string name See the developer docs.
sortDirection string asc See the developer docs.
type string file, web_link Indicates which type of items can be picked. Should be a comma seperated combination of file, folder or web_link.

Keyboard Shortcuts

See the developer docs.