ePages 6.17.17 - DE_EPAGES/Presentation/API/TLE/GUI/AccordionHandler.pm

Package DE_EPAGES::Presentation::API::TLE::GUI::AccordionHandler

Handler to build and work with jquery accordions in the templates

Base
DE_EPAGES::Presentation::API::TLE::GUIObject

Functions

item
new
option
tag

item

Adds a new item.

Syntax
#Accordion.item(Params)
Example
#Accordion.item("content" = "the content", "title"="My title")
Input
Params (string list)
list of attributes, e.g. HTML-attributes except "class",
#Accordion.item("open" = 1) to show on default

new

Creates a new handler.

Syntax
$Handler = DE_EPAGES::Presentation::API::TLE::GUI::AccordionHandler->new($Processor);
Example
my $Handler  = DE_EPAGES::Presentation::API::TLE::GUI::AccordionHandler->new($Processor);
Input
$Processor (object)
processor
Return
$Handler (object)
blessed object

option

Sets jQuery UI accordion options.

Syntax
#Accordion.option(Params)
Example
#Accordion.option("collapsable" = "true")
Input
Params (
hash.string)
list of options, see jQuery UI accordion options

tag

setup the tag name of the accordion container node.

Syntax
#Accordion.tag(Param)
Example
#Accordion.tag("div") or #Accordion.tag("span")
Input
Param (string)
tag-name