Table of Contents

Button

Button widget is used to add a custom button to your webpage.

Screen Shot

:widgets:button.jpg

Sample Code

//Build the button object
$search =& $this->build("p4a_button","search"); 
//Assign a value to the button
$search->setValue("Go");                       
//Use intercept to assign action to this button
$this->intercept($search, "onClick","search");
 
//Now you can anchor this button where you want
$this->frame->anchor($search);
 
widgets/button.txt · Last modified: 2007/12/31 08:58 by milindlokde
 
Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki