Skip to content

Latest commit

 

History

History
37 lines (34 loc) · 2.41 KB

tag.elfinder.md

File metadata and controls

37 lines (34 loc) · 2.41 KB

elFinder Tag

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. For protecting system files just like Thumb.db, all hidden files will not been shown.

<%@ taglib prefix="efw" uri="efw" %>
<head>
	<efw:Client/>
</head>
<body>
	<efw:elFinder id="elFinder1" home="homefolder" height="400" width="800" readonly="false" /> //or efw:elfinder , efw:Elfinder , efw:ELFINDER
</body>

Attributes

NameRequiredDefaultDescription
idYesThe identity of the elFinder tag. You can use it as the instance of the elFinder.
homeNo""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.
selectionNo""A relative path to the home folder. The file or folder of the path will be selected when elfinder openning .
heightNo"400"The height of elFinder tag. The unit is "px".
widthNo"auto"The width of elFinder tag. The unit is "px".
readonlyNo"false"The elFinder tag is for reference or not.
protectedNo"false"The elFinder tag is protected or not. If it is true, "setHome" method and "setReadOnly" method calling will be ignored.
isAbsNofalseThe home path is absolute path or not.

Methods

CallingReturningDescription
id . setHome ( path )voidTo set the home attribute.
id . setHome ( path , selection )voidTo set the home attribute and the selection attribute.
id . setHeight ( height ) voidTo set the height attribute.
id . setWidth ( width ) voidTo set the width attribute.
id . setReadOnly ( readonly ) voidTo set the readonly attribute.