Re: Quickform & in-line styles

From: Date: Thu, 06 Jul 2006 07:37:04 +0000
Subject: Re: Quickform & in-line styles
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24580@lists.php.net to get a copy of this message
l Burnerheimerton wrote:
I want to highlight a static field with data retrieved from a database - make it non-editable. I tried: $form->addElement('static','note', 'Notes:', array('style' => 'background-color: #FFFF80;')); Obvisouly you can not, or I don't know of a way to, add the 4th parameter to static fields. I looked at freeze but don't think that is right either.
Use HTML_QuickForm_Renderer_Default::setElementTemplate() http://pear.php.net/manual/en/package.html.html-quickform.html-quickform-renderer-default.setelementtemplate.php -- Massimiliano Arione http://garakkio.altervista.org

« previous php.pear.general (#24580) next »