[script]
var toolsList = ["layout", "creation", "navigation", "addressBar", "editing", "copyPaste", "getProperties", "customTool", "searchBar"];
var tools = ej.FileExplorer.prototype.defaults.tools;
tools.customTool = [{
name: "Help",
tooltip: "Help ",
css: "e-fileExplorer-toolbar-icon Help",
action: function () {
window.open("https://help.syncfusion.com/js/fileexplorer/toolbar#custom-tool-in-toolbar")
}
}];
$("#fileExplorer").ejFileExplorer({
toolsList: toolsList,
tools: tools,
path: "http://js.syncfusion.com/demos/ejServices/Content/FileBrowser/",
ajaxAction: "http://js.syncfusion.com/demos/ejServices/api/FileExplorer/FileOperations",
});
|
$(function () {
$("#fileExplorer").ejFileExplorer({
isResponsive: true,
width: "100%",
minWidth: "150px",
fileTypes: "*.png,*.gif,*.jpg,*.jpeg,*.docx",
toolsList: toolsList,
layout: "largeicons",
tools: tools,
create : "onCreate"
});
});
function onCreate(args){
$(this._toolBarObj.items).filter($('li#' + this.element.attr('id') + 'CreateFolder').insertAfter("ul li:eq(0)") )
} |