ePages 6.17.13 - DE_EPAGES/TLE/API/GUIHandler.pm

Package DE_EPAGES::TLE::API::GUIHandler

Implements the #GUI block

Functions

GUI
registerGUIObject

GUI

Declares a local TLE 'GUI Element Object' that is valid for this BLOCK in the template. The GUI object generates the output of this block. Any text or HTML code inside the GUI block is ignored.

Syntax
#GUI(#ElementType, #LocalName) ... #ENDGUI
Example
#GUI("accordion")
  #GUI.item(
    "title"  = "1. Title",
    "content"= "Content text"
  )
#ENDGUI
#GUI("accordion", "Accordion")
  #Accordion.item(
    "title"  = "1. Title",
    "content"= "Content text"
  )
#ENDGUI
Input
#ElementType (string)
element type, e.g. "accordion"
#ElementName (string)
element name, e.g. "MyAccordion"
Return
$Result (string)
output produced by the GUI element

registerGUIObject

this function register a new gui type to this gui tle handler

Syntax
$Handler->registerGUIObject($Package, $Type);
Input
$Package (object)
package of the gui type
$Type (object)
gui type