Package com.jalios.jcms.uicomponent
Class LightboxUtils
- java.lang.Object
-
- com.jalios.jcms.uicomponent.LightboxUtils
-
public final class LightboxUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataAttribute
getImageDataAttribute(FileDocument doc, java.lang.String userLang, java.util.Locale locale, Member mbr, boolean generateThumbnail)
Returns aDataAttribute
containing all required parameters for javascript for lightbox / image editor
-
-
-
Method Detail
-
getImageDataAttribute
public static DataAttribute getImageDataAttribute(FileDocument doc, java.lang.String userLang, java.util.Locale locale, Member mbr, boolean generateThumbnail)
Returns aDataAttribute
containing all required parameters for javascript for lightbox / image editor- Parameters:
doc
- theFileDocument
userLang
- the user languagelocale
- theLocale
mbr
- theMember
to check rightsgenerateThumbnail
- to generate a thumbnail for lightbox (By default, raw image will be used)- Returns:
DataAttribute
for lightbox and image editor front end libraries- Since:
- jcms-10.0.6 / JCMS-8841
-
-