Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Filter listview by terms #2092

Closed
Closed
@project707

Description

@project707

The listview filter is a match on entire string rather than terms.

rather than filtering once on a single string per <li> there should be an option to filter based on terms within the string (eliminating the need for full matches or exact order). This is easy enough to accomplish, but it might be best as an optional functionality due to increased overhead.

I am mostly creating this to have a ticket number for reference as I already have a solution that is enabled with data-filter-terms="true". In this case I actually ended up repeating the filtering process with each term entered rather than splitting all li's into possible terms over and over again. I am debating whether or not my feeling that this way incurs less overhead is correct, but at least it would be taking advantage of the existing methods.

Activity

toddparker

toddparker commented on Aug 7, 2011

@toddparker
Contributor

I think we can also close this because we landed a solution.

project707

project707 commented on Aug 8, 2011

@project707
Author

There has been no solution found for this, and has nothing to do with my other pull request directly.

I believe this is a much more basic issue that still needs to be addressed. It's not about search cases or regex or any of that, but rather simply the fact that if you have the string "lastname, firstname" in a listview the user can't filter down to this by typing "firstname, lastname"

toddparker

toddparker commented on Aug 19, 2011

@toddparker
Contributor

Re-opening this our hook doesn't really cover this.

toddparker

toddparker commented on Aug 19, 2011

@toddparker
Contributor

I just tagged as a feature request...can you add this to the feature request wiki, link to this issue, then close it? We'll re-open when we tackle this.

project707

project707 commented on Aug 19, 2011

@project707
Author

ok here is the pull request that I had submitted for this before (which you also closed at the same time):
#2093

I had also added it as a feature request before. Check out:
https://github.com/jquery/jquery-mobile/wiki/Feature-Requests
listview > Filter by term (think it's currently the last one in "listview")

I think there has been some kind of confusion as I was trying to get the two things settled concurrently...

We currently have it hacked into our code which is about to be a live release, as no one dealing with UX (or myself) could imagine a filter function being limited to an exact match these days, considering the expectations based on what other mobile sites and native applications are delivering. I'm guessing this will mean maintaining our own listview filter project, or moving to another framework in the next iterations - at least for a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @toddparker@project707

        Issue actions

          Filter listview by terms · Issue #2092 · jquery-archive/jquery-mobile