【发布时间】:2021-09-20 02:21:26
【问题描述】:
当文件夹为空时,无论如何禁用拖放功能。我正在使用 syncfusion 文件管理器和 react js 只是为了从节点服务器浏览文件夹和文件。 我在 react 组件的 return 中编写了以下代码:
<div className='control-section'>
<FileManagerComponent
id='file'
view='LargeIcons'
enablePersistence={true}
ajaxSettings={{
async: true,
url: hostUrl,
downloadUrl: hostUrl + '/Download',
getImageUrl: hostUrl + '/GetImage',
}}
detailsViewSettings={{
columns: [
{
field: 'name',
headerText: 'File Name',
minWidth: 120,
width: 'auto',
customAttributes: { class: 'e-fe-grid-name' },
template: '${name}',
},
],
}}
contextMenuSettings={{
visible: false,
}}
fileSelect={onFileSelect}
success={onSuccess}
failure={onFailure}
>
<Inject services={[DetailsView]} />
</FileManagerComponent>
</div>
【问题讨论】:
标签: reactjs syncfusion