rad filemanager
npm install rad-filemanagerbash
npm install --save rad-filemanager
`
Usage
`tsx
import React, { Component } from 'react';
import FileManagerReact from 'rad-filemanager';
const App: React.FunctionComponent = () => {
return (
header={{
clientId: '17959574q2f0347718971594ccd86f3f4',
accessToken: '22c023053ef746e48df1abca06392e39.XzIwMjM0'
}}
permissions={[
'drives_upload',
'drives_upload_image',
'drives_search',
'drives_storage',
'drives_folder_create',
'drives_cut',
'drives_copy',
'drives_delete',
'drives_rename',
'drives_folder_children',
'drives_archive_list'
]}
config={{ height: '400px' }}
/>
);
};
export default App;
`
Development
`bash
npm run serve
`
Props
> clientId
- type : string
- Description : clientId requier for send http request.
`bash
clientId = '17959574q2f0347718971594ccd86f3f4'
`
> accessToken
- type: string
- Description : accessToken requier for send http request.
`bash
accessToken='22c023053ef746e48df1abca06392e39.XzIwMjM0'
`
> permissions
- type : string[]
- description: all of the permissions which your app have access to them.
-
`bash
[
'upload',
'upload_image',
'search',
'storage',
'folder_create',
'cut',
'copy',
'delete',
'rename',
'folder_children',
'archive_list',
'download'
]
`
> permissions : other way to send props , full access
`bash
permissions=['full']
`
> config
- type: object
- description: height have default value
(100%).
- defult value : height: 100%
`bash
{
height: "400px"
}
``