HTML_Quickform2 custom rendering
| From: | Thomas Tremain | Date: | Tue, 02 Apr 2013 10:22:04 +0000 |
| Subject: | HTML_Quickform2 custom rendering | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-31755@lists.php.net to get a copy of this message | ||
I've been playing with the callback method of customizing the rendering of
output.
I can modify the form rendering with:
$r->setCallbackForClass('HTML_QuickForm2', function($renderer, $form) {
.
.
.
});
I can modify the element rendering with:
$r->setCallbackForClass('HTML_QuickForm2_Element', function($renderer,
$element) {
.
.
.
});
However when I define:
$r->setCallbackForClass('HTML_QuickForm2_Node', function($renderer, $node) {
.
.
.
});
The default: _renderLabel() function is still run instead of the custom
callback function.
Is this a bug?