HTML_QuickForm_advmultiselect : The Definitive Guide |
A label is a description text that will be displayed near the element. Some renderers can handle multiple labels for the element. Placeholders used by these renderers are different in naming convention. Nevermind, HTML_QuickForm_advmultiselect used only one standard coding that is equivalent to the QuickForm default renderer.
As {label_2} is the placeholder for the second label (unselected list), {label_3} is the placeholder for the third label (selected list), in the hash setting. See HTML_QuickForm::setLabel() method.
|
Important |
|---|---|
| The first label is always for the advmultiselect element group itself. Its name depend of the QuickForm renderer used. See examples that follow to notice the difference. |
The first label with default renderer, is always named {label}.
In this example, its value will be Cars:.
The first label with ITDynamic renderer, is always named {qf_label}.
In this example, its value is still Cars:.
Lets review in details how to set the appearance of headers in one of examples included in the package.
After the labels are set:
Have a special look on the advmultiselect template element. Here is it:
Header for the unselected list (named Available) is center aligned in bold with the
TH tag.
Header for the selected list (named Selected), is also center aligned in bold with
another TH tag.
|
Tip |
|---|---|
To give only a header to the selection list, either you set
values as:
<!-- BEGIN label_2 --> into the
advmultiselect template element.
|
| HTML_QuickForm_advmultiselect : The Definitive Guide | v 1.4.0 : 9 Juin 2007 |