PEAR logo

HTML_QuickForm_advmultiselect : The Definitive Guide



Outputting the form element

Setting buttons values
Basic renderer
Template-based renderer

Setting buttons values

Here, you can choose between standard form text or image button. You can also set the CSS class used to change the look and feel of buttons.

Basic renderer

HTML_QuickForm_advmultiselect::toHtml - Returns the HTML generated for the advanced mutliple select component

This renderer is based on HTML_QuickForm_advmultiselect code and require no external classes to do its job. It's very similar to HTML_QuickForm default renderer .

Template-based renderer

HTML_QuickForm_advmultiselect::getElementCss - Gets default element stylesheet for a single multi-select shape render
HTML_QuickForm_advmultiselect::getElementJs - Returns the javascript code generated to handle this element
HTML_QuickForm_advmultiselect::setElementTemplate - Sets element template

Here is the core of customization of this QuickForm element. With the three methods below, you can easily include it in an existing template page with all parts (CSS, JS, lists, buttons) at the right place.

HTML_QuickForm_advmultiselect : The Definitive Guide v 1.4.0 : 9 Juin 2007