HTML_QuickForm_advmultiselect : The Definitive Guide |
HTML_QuickForm_advmultiselect::setElementTemplate
-
Sets element template
require_once 'HTML/QuickForm/advmultiselect.php';
void HTML_QuickForm_advmultiselect::setElementTemplate(
|
$html) ;
|
string | $html; |
It is so easy to re-arrange select boxes, headers and buttons position. The template is a bit of html code with reserved placeholders words. They are:
stylesheet
The CSS delimited by the style tags required only for the
single multi-select with checkboxes shape. Not included in the
default template. You can use instead, the getElementCss
method.
javascript
The JavaScript delimited by the script tags required to manage
item of both multi-select boxes. If it is not included, you can
use instead, the getElementJs
method.
class
A CSS class identifier in one of your stylesheets that is the default table layout. Default values are:
<table border="0" cellpadding="10" cellspacing="0">
label_2
The unselected list header
label_3
The selected list header
unselected
The unselected list.
selected
The selected list.
add
The add button to swap one (or more) item from the unselected to the selected list.
remove
The remove button to swap one (or more) item back from the selected to the unselected list.
moveup
The button to move one item of the selected list to the top.
movedown
The button to move one item of the selected list to the bottom.
In this partial example, the fruit list select boxes are set to vertical alignement with images for the 'add' and 'remove' buttons. Default presentation are horizontal alignment with input text buttons in the middle side.
HTML_QuickForm_advmultiselect : The Definitive Guide | v 1.4.0 : 9 Juin 2007 |