Agile Toolkit  4.2
Agile Toolkit is a powerful web development framework. Inspired by GUI Applications development
View_Button Class Reference
Inheritance diagram for View_Button:
View_HtmlElement View AbstractView AbstractObject Button Form_Button Form_Submit

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)

Detailed Description

Implements a simple button


Member Function Documentation

Redefine to return default template, when 4th argument of add() is omitted

Reimplemented from View.

isClicked ( confirm = null)

Add click handler on button and returns true if button was clicked

jsButton ( )

redefine this method with empty one if you DONT want buttons to use jQuery UI

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

setClass ( class)

Reimplemented from View.

setIcon ( icon,
colour = 'blue' 
)

Button management

setLabel ( label)

Reimplemented in Form_Button.

setStyle ( property,
style = null 
)

Add style to element.

Reimplemented from View.

submitForm ( form)

The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables Enumerations