[html-formfu] More questions about selects :)

Carl Franks fireartist at gmail.com
Tue Feb 12 10:14:38 GMT 2008


On 11/02/2008, Andreas Marienborg <omega at palle.net> wrote:
> Hey again :p
>
> empty_first is nice, but I was wondering if its possible to have a
> label for it? specificaly label_loc :p

That sounds reasonable.

It'll need to be added to Element/_Group.pm
Import mk_output_accessors() from HTML::FormFu::Attribute
then do:
    __PACKAGE__->mk_output_accessors(qw/ empty_first_label /);

And it'll also automatically create methods for
empty_first_label_loc() and empty_first_label_xml()

The more difficult bit will be searching through _Group.pm for all
uses of empty_first and making sure it's handled properly.

And tests too, of course :p

Oh, and do you have commit access?

Cheers,
Carl



More information about the HTML-FormFu mailing list