Agile Toolkit
4.2
Agile Toolkit is a powerful web development framework. Inspired by GUI Applications development
|
Public Member Functions | |
defaultTemplate () | |
setIcon ($icon, $colour='blue') | |
setLabel ($label) | |
setButtonStyle ($n) | |
setStyle ($key, $value=null) | |
setClass ($class) | |
jsButton () | |
render () | |
isClicked ($confirm=null) | |
onClick ($callback, $confirm=null) | |
setAction ($js=null, $page=null) | |
redirect ($page) | |
submitForm ($form) |
Implements a simple button
defaultTemplate | ( | ) |
isClicked | ( | $ | confirm = null | ) |
Add click handler on button and returns true if button was clicked
onClick | ( | $ | callback, |
$ | confirm = null |
||
) |
Add click handler on button and executes $callback if butotn was clicked
redirect | ( | $ | page | ) |
render | ( | ) |
Default render. Generates HTML presentation of the view based on $this->template and passes it to output() function which then inserts output into parent's template
For visual objects, their default action while rendering is rely on SMlite engine. For sake of simplicity and speed you can redefine this method with a simple call
Reimplemented from AbstractView.
setAction | ( | $ | js = null , |
$ | page = null |
||
) |
setButtonStyle | ( | $ | n | ) |
Adds CSS of the news
setLabel | ( | $ | label | ) |
Reimplemented in Form_Button.
submitForm | ( | $ | form | ) |