Hi Omar,
Greetings from Syncfusion support.
We have checked your reported query with FileManager component. You can add the custom toolbar items in ToolbarSettings of FileManager component. You can get the selected files details in getSelectedFiles method of FileManager component.
Please, refer to the below code snippet.
<template>
<div id="app">
<ejs-filemanager
id="file-manager"
ref="file_instance"
:toolbarSettings="toolbarSettings"
:ajaxSettings="ajaxSettings"
:created="created"
:fileSelect="fileSelect"
>
</ejs-filemanager>
</div>
</template>
methods: {
created: function (args) {
this.$refs.file_instance.disableToolbarItems(["Custom"]);
},
fileSelect: function (args) {
if (this.$refs.file_instance.getSelectedFiles().length > 0) {
this.$refs.file_instance.enableToolbarItems(["Custom"]);
} else {
this.$refs.file_instance.disableToolbarItems(["Custom"]);
}
},
}, |
Please, refer to the sample link.
Please, refer to the below link for FileManager component.
Please let us know, if you need any further assistance.
Regards,
Sowmiya.P