DATA_PREFIX
DATA_PREFIX
Gallery
__construct(null|string|object $options = null) : \Fuman_Response_Data
options: The options will be passed directly to the JavaScript class (@see assets/gallery.js).
They can be passed as JSON string or as stdClass object
For easy use you may pass the options as comma delimited key=value list: key1=value1,key2=value2,... which will be converted to object Special keys are: name => converted to selector = *[rel=NAME] engine => converted to engineClassName = fuman.app.more.component.gallery.engine.ENGINE animator => converted to animatorClassName = fuman.app.more.component.gallery.animator.ANIMATOR
If engine or name is lightbox or slideshow templateSelector = .app_more_component_gallery_ENGINE_default (when lightbox overviewTemplateSelector = .app_more_component_gallery_ENGINE_overview_default) will be added
null|string|object | $options |
setAttribute(string $key, string $value, boolean $appendValue = true, string $appendSpacer = ' ') : void
Sets an attribute. If $appendValue is true, the value is going to be appended with the $appendSpacer argument.
string | $key | |
string | $value | |
boolean | $appendValue | |
string | $appendSpacer |
addCssFile(string $path, string $media = 'all', string|null $packageName = null) : \Fuman_Response_Data
Add a CSS file
string | $path | |
string | $media | |
string|null | $packageName | Used for pack.php |
addJsFile(string $path, integer $javaScriptLoadType, string|null $packageName = null) : \Fuman_Response_Data
Add a Js file
string | $path | |
integer | $javaScriptLoadType | |
string|null | $packageName | Used for pack.php |
setTemplatePath(string $templatePath) : \Fuman_Response_Data
Sets script path
string | $templatePath |