#27 ✓resolved
Stephen Elson

AutoSuggest - way to filter results

Reported by Stephen Elson | July 17th, 2009 @ 01:44 PM | in 1.7

When a set of results a generated pass them to an optional user-supplied function (as an array) and let the user pass back the filtered results.

This allows the user to remove, add and reorder items.

// a reference to this function would be passed in as an option
function myFilter(results) {
  // here I omit the first result
  return results.slice(1);
}

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A JavaScript Library

Shared Ticket Bins

People watching this ticket

Pages