HTML_Quickform2 custom rendering

[email protected] ("Thomas Tremain")
Newsgroups php.pear.general
Message-ID <016b01ce2f8b$ec590660$c50b1320$@com>
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?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.