On Tue, 2011-06-07 at 21:51 +0100, Richie Ward wrote: > I don't think it is identical to multiple="true", just using size on > its own does not allow you to pick more than one item. It behaves the > same as a normal dropdown, the only difference being its appearance. > > Try it yourself at http://www.w3schools.com/TAGS/tag_Select.asp > > Adding a size parameter allows you to get a permanent scrollbar, ideal > for situations where you may have 100's of items but a drop down is > not appropriate.
Right you are. Sorry, I was misled by the fact that size="2" appeared in Chrome exactly like "multiple="true"". I'll add a size attr to the widget. - C > > CheckboxChoiceWidget could be a short term compromise for now but it > would mean scrolling down the whole page with lots of items. > > i know I can just make a widget but something simple like this should > be included with deform. > > On 7 June 2011 21:22, Chris McDonough <[email protected]> wrote: > > 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. > > > > > > > > -- > 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.
