ElFinder is a famous file manager for web. We made a customized version from elFinder 2.1,
and included it into Efw as a tag. It must be used after the Client tag for jQuery and jQuery UI including.
<%@ taglib prefix="efw" uri="efw" %>
<head>
<efw:Client/>
</head>
<body>
<efw:elFinder id="elFinder1" home="homefolder" height="400" width="800" lang="en" readonly="false" /> //or efw:elfinder , efw:Elfinder , efw:ELFINDER
</body>
Name | Required | Default | Description |
id | Yes | | The identity of the elFinder tag. You can use it as the instance of the elFinder. |
home | No | "" | A relative path to the storage folder(/WEB-INF/storage). You can set the properties file to change the storage folder to your own folder. |
height | No | "400" | The height of elFinder tag. The unit is "px". |
width | No | "auto" | The width of elFinder tag. The unit is "px". |
lang | No | "en" | The language of elFinder tag. |
readonly | No | "false" | The elFinder tag is for reference or not. |
protected | No | "false" | The elFinder tag is protected or not. If it is true, "setHome" method and "setReadOnly" method calling will be ignored. |
Calling | Returning | Description |
id . setHome ( path ) | void | To set the home attribute. |
id . setHeight ( height ) | void | To set the height attribute. |
id . setWidth ( width ) | void | To set the width attribute. |
id . setReadOnly ( readonly ) | void | To set the readonly attribute. |