|
Agile Toolkit
4.2
Agile Toolkit is a powerful web development framework. Inspired by GUI Applications development
|
Public Member Functions | |
| setElement ($element) | |
| setAttr ($attribute, $value=null) | |
| addClass ($class) | |
| removeClass ($class) | |
| setClass ($class) | |
| setStyle ($property, $style=null) | |
| addStyle ($property, $style=null) | |
| setText ($text) | |
| set ($text) | |
| setHtml ($html) | |
| defaultTemplate () | |
HtmlElement is a base class of any View which would render as a single HTML element. By default it puts
| addClass | ( | $ | class | ) |
Add class to element.
| addStyle | ( | $ | property, |
| $ | style = null |
||
| ) |
Add style to element
| defaultTemplate | ( | ) |
Redefine to return default template, when 4th argument of add() is omitted
Reimplemented from AbstractView.
Reimplemented in Lister, CompleteLister, Paginator_Basic, Grid_Advanced, View_Columns, View_Box, Menu_Basic, View_Tabs_jUItabs, Grid_Basic, InfoWindow, View_Hint, View_Button, and Frame.
| removeClass | ( | $ | class | ) |
| set | ( | $ | text | ) |
| setAttr | ( | $ | attribute, |
| $ | value = null |
||
| ) |
Add attribute to element. Also supports hash for multiple attributes
| setClass | ( | $ | class | ) |
Reimplemented in View_Button.
| setElement | ( | $ | element | ) |
Change which element is used. 'div' by default, but change with this funciton
| setHtml | ( | $ | html | ) |
Sets HTML
| setStyle | ( | $ | property, |
| $ | style = null |
||
| ) |
Add style to element.
Reimplemented in View_Button.
| setText | ( | $ | text | ) |
Sets text appearing inside element. Automatically escapes HTML characters