Class: CancelButton
Source Location: /myphp-1.9/myphp-1.9-form/html/component/CancelButton.php
Class CancelButton
Class Overview
|
Generates an INPUT element for a form, as a Cancel Button
- <input type="button" name="$name" value="$value" class="$class"
- title="$title" tabindex="" />
- Usage:
- $button = new CancelButton($name,$value,$class,$onclick,$title,$tabindex);
- print $button->getHtml();
- Or
- CancelButton::display($name,$value,$class,$onclick,$title,$tabindex);
Located in /myphp-1.9/myphp-1.9-form/html/component/CancelButton.php [line 32]
Object
|
--Html
|
--Input
|
--CancelButton
|
Methods
|
Inherited Properties, Constants, and Methods
Methods
CancelButton CancelButton(
[String
$name = ''], [String
$value = ''], [String
$class = ''], [String
$onclick = ''], [String
$title = ''], [String
$tabindex = '']
)
|
|
Constructor
Parameters:
|
String |
$name: |
The name |
|
String |
$value: |
The value, if any |
|
String |
$class: |
The class |
|
String |
$onclick: |
On click event for javascript |
|
String |
$title: |
The tooltip |
|
String |
$tabindex: |
The tabindex |
void display(
[String
$name = ''], [String
$value = ''], [String
$class = ''], [String
$onclick = ''], [String
$title = ''], [String
$tabindex = '']
)
|
|
Display html
Parameters:
|
String |
$name: |
The name |
|
String |
$value: |
The value, if any |
|
String |
$class: |
The class |
|
String |
$onclick: |
On click event for javascript |
|
String |
$title: |
The tooltip |
|
String |
$tabindex: |
The tabindex |
API Tags:
Redefinition of:
- Input::display()
- Display html
|
|