Very nice, thanks Kevin !

On Jun 3, 1:43 pm, kevinpfromnm <[email protected]> wrote:
> digging down into it further, you can pass first-value to set the
> value of the first-option.  however, you might just want to write your
> own tag at this point that doesn't include the first-option at all.
>
> <def attrs='param-name, options, id' tag='filter-menu-without-no-
> option'>
>   <form class='filter-menu' action='&request.request_uri' method='get'
> merge-attrs='id'>
>     <div>
>       <% selected = options.detect {|o|
> o.to_s==params[param_name.gsub('-', '_')] } %>
>       <select-menu name='&param_name' options='&options'
> selected='&selected' merge-params />
>     </div>
>   </form>
> </def>
>
> On Jun 3, 11:35 am, Jeremy Savoy <[email protected]> wrote:
>
>
>
> > Unfortunately what that does is set the value in the drop down, but
> > doesn't actually apply the filter since its for the "no-filter"
> > value ... I want to completely remove the no-filter option from the
> > list.
>
> > My list of filter options comes from another table .... so I truly
> > just want to remove the "All" no-filter option from the list .. not
> > just rename it.
>
> > filter-menu param-name="timeframe" options="&TaskTimeframe.all"
>
> > On Jun 3, 1:06 pm, kevinpfromnm <[email protected]> wrote:
>
> > >http://cookbook.hobocentral.net/api_tag_defs/filter-menu
>
> > > yes, and probably get your other part along with it.  try setting the
> > > no-filter attribute to the name of the item you want to be the
> > > default.
>
> > > On Jun 3, 7:42 am, Jeremy Savoy <[email protected]> wrote:
>
> > > > Ok, should have searched the group first ... found most of my answer
> > > > here:
>
> > > >http://groups.google.com/group/hobousers/browse_thread/thread/a0ded10...
>
> > > > Still unclear as to whether or not I can remove the "All" option?
>
> > > > On Jun 3, 9:38 am, Jeremy Savoy <[email protected]> wrote:
>
> > > > > I have a table-plus and I filter it using the example from Agility.
> > > > > All works well.
>
> > > > > What I want to do is to remove the "All" option from the filter list
> > > > > (i.e. "not filtered") and set the default filter value to one of the
> > > > > other options and have this filter applied to the collection.
>
> > > > > Is this currently possible ?

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to