Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Latest commit

 

History

History
33 lines (32 loc) · 2.1 KB

tag.elfinder.md

File metadata and controls

33 lines (32 loc) · 2.1 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.

<%@ 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>

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.
heightNo"400"The height of elFinder tag. The unit is "px".
widthNo"auto"The width of elFinder tag. The unit is "px".
langNo"en"The language of elFinder tag.
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.

Methods

CallingReturningDescription
id . setHome ( path )voidTo set the home 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.