On Tue, 2011-06-07 at 20:34 +0100, Richie Ward wrote: > I am using SelectWidget and I would like to pass through the size > attribute for <select ... size=10> so I can turn the dropdown into a > selectable list.
Wow, I had no idea that adding size="x" to a select element did what it does (which AFAICT, is identical to 'multiple="true"). You learn something new every day. Deform (somewhat purposefully, because no non-techical user understands them) doesn't support multiple select widgets. Instead Deform offers the CheckboxChoiceWidget: http://deformdemo.repoze.org/checkboxchoice/ . Changing the SelectWidget to support multiple elements is not really something I'm personally keen on doing (it's meant for single inputs), but it should be easy for someone to work up a MultipleSelectWidget (see the "Creating a Widget" documentation). - C > > SelectWidget seems to be missing the size attribute so I have to edit > the template and widget code (I think!?!?, I haven't got into deform's > advanced functionality too much yet) > > Could someone send a small patch to deform's git to fix this? Its like > one minutes work and would make this handy little widget nicer to use. > > -- > Thanks, Richie Ward > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
