P.S

I've posted a bug report for this
http://framework.zend.com/issues/browse/ZF-2698

And here's my original post (no body has replied yet but just incase someone
does)
http://www.nabble.com/Adding-Multipule-Classes-to-Form-Elements-td15587036s16154.html

On Thu, Feb 21, 2008 at 9:35 AM, James Dempster <[EMAIL PROTECTED]> wrote:

> I'm having a similar problem, I'm not using the config for elements
> though.
>
> To get a class onto the element I think you would need to add...
> user.login.elements.password.options.attrib = "element text medium"
>
> But then you'd get the problem I'm having which is if you specifiy a class
> then you'll loose the required or optional class that gets added when you
> specifiy required = true
>
> I'm proposing that they having something like addClass or setClass where
> they would add the class name to a list of definded classes then at render
> explode that list seperated by a space.
>
>
> On Wed, Feb 20, 2008 at 4:48 PM, bjorn - <[EMAIL PROTECTED]> wrote:
>
> > Here's an example of my config for the Password entry field in my login
> > form:
> >
> > user.login.elements.password.type = "password"
> > user.login.elements.password.options.validators.strlen.validator =
> > "StringLength"
> > user.login.elements.password.options.validators.strlen.options.min = "6"
> > user.login.elements.password.options.required = true
> > user.login.elements.password.options.label = "Password"
> > user.login.elements.password.options.class = "element text medium"
> >
> > I'd like the label to have a class though, how can that be accomplished?
> > (options.label.class = 'blabla' didn't work ..)
> >
> > --
> >
> > ========================
> > http://www.juicability.com - flex blog
> > http://www.43min.com - funny movies
> >
>
>
>
> --
> /James




-- 
/James

Reply via email to