Features added to QuickForm
| From: | Jonas Delfs | Date: | Sat, 17 Nov 2001 04:57:41 +0000 |
| Subject: | Features added to QuickForm | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-2934@lists.php.net to get a copy of this message | ||
Hi -
I'm using QuickForm to create HTML forms and found some missing features
that I've now added:
The functions setLabelAlign(), setLabelBold(), setHeaderBold(),
setHeaderColor() and theese functions variables: $_labelAlign,
$_labelBoldFlag, $_headerBoldFlag, $_headerColor
I think their purposes talks for them selves, but they have ofcause been
documented in QuickForm.php.
Furthermore I've added a few parametres to addHeader() and _wrapHeader():
the optional $bgColor and $bold. This is to let the developer specify a
specific background-color and/or boldness for a specific header. Theese
arguments will also overwrite any standard settings set by setHeaderBold()
and setHeaderColor(). In same process _buildHeader() has been build out to
handle theese 2 settings.
At last, I've found a little error in the documentation of addRule()
regarding the $type argument.
The new and better QuickForm.php is to be found on:
http://delfs.dk/QuickForm.php
I also have a few comments to the original developers of QuickForm: Why is
HTML-kode in uppercase? -XHTML standards says in lowercase. Why not let the
Table-class do the table-stuff? And at last, if i add a checkbox or radio
element the label is both places before and after the element. The label
only have to be shown after an element in an element group, I think.
Comments welcome.
Best Regards
Jonas Delfs, http://delfs.dk