ePages 7.0.0 - DE_EPAGES/Presentation/API/TLE/GUI/InputHandler.pm

Package DE_EPAGES::Presentation::API::TLE::GUI::InputHandler

Handler to build and work with inputs in the templates

Functions

getVars
new
option
validate

getVars

Fills and returns the final template variables.

Syntax
$Handler->getVars()
Example
$TemplateVars = $handler->getVars()
Return
$self->{'TemplateVars'} (ref.hash)
template vars

new

Creates a new handler.

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

option

Adds options to an input field (e.g. select, checkbox, ...).

Syntax
#Input.option(Params)
Example
#Input.option("Value" = "1", "Text" = "My Option")
Input
Params (string list)
list of attributes e.g.
select-input: #Input.option("Selected" = 1) to show this as default,
HTML-attributes except "class"

validate

Adds input validation.

Syntax
#Input.validate(Params)
Example
#Input.validate("required"="true")
Input
Params (string list)
list of attributes, see module uiValidate()