$html

( documentation for Telosys generator version 3.3.0 )


Object providing a set of utility functions for HTML language code generation


Since : 3.0.0

Attributes and methods
.max(AttributeInContext attribute) : String

Returns the HTML5 'max' attribute for maximum values (or void if none)
e.g : max='10'

Parameters :
   attribute : the attribute holding the 'max' information

Example :
   $html.max($attribute)

.maxlength(AttributeInContext attribute) : String

Returns the HTML5 'maxlength' attribute if any or if computable from type
(else returns a void string)
e.g : maxlength='20'

Parameters :
   attribute : the attribute holding the 'maxlength' information

Example :
   $html.maxlength($attribute)

.min(AttributeInContext attribute) : String

Returns the HTML5 'min' attribute for minimum values (or void if none)
e.g : min='10'

Parameters :
   attribute : the attribute holding the 'min' information

Example :
   $html.min($attribute)

.type(AttributeInContext attribute) : String

Returns the HTML5 'type' attribute for 'input' tag
The 'type' is determinded from the 'input type' if any or computed from the model type
e.g : type='text', type='number', type='date', type='time', etc

Parameters :
   attribute : the attribute holding the 'type' information

Example :
   $html.type($attribute)