Code Monkey home page Code Monkey logo

Comments (6)

bglw avatar bglw commented on September 26, 2024 1

Yes that's certainly possible, I'll look at adding that 🙂

How do you want the UI to then handle that filter? Options:

  1. The Type filter group is shown in the search UI. Events is pre-selected
  2. The Type filter group is shown in the search UI. Events is forced on and not shown in the list of options.
  3. The Type filter group is hidden altogether in the search UI.

from pagefind.

hithismani avatar hithismani commented on September 26, 2024

Fascinating approaches!

I'd say that most ideal, is:

  • If we've specified a single value in the Type filter, it shouldn't even list the other "types".
  • If we've mentioned multiple Types, it should show only those values in the dropdown?

from pagefind.

bglw avatar bglw commented on September 26, 2024

Thanks, I think that sounds like a good approach 🙂 I'll look at this in the near future

from pagefind.

rauschma avatar rauschma commented on September 26, 2024

Maybe general faceted navigation would make sense for Pagefind.

You can see a (very crude) implementation here: https://2ality.com/archive.html

In this case, the facets are: Year, Month, Tag.

from pagefind.

bglw avatar bglw commented on September 26, 2024

@rauschma as far as I can tell the underlying structure of Pagefind's filters supports a faceted navigation approach yes? So this would only impact the UI library.

I think for this kind of change I would really like to have a showcase of Pagefind UI widgets that can be used in place of the builtin widget, which saves the default from having to cater to every use case (and could also provide framework-specific components)

from pagefind.

rauschma avatar rauschma commented on September 26, 2024

@bglw Makes sense. Thanks for clarifying!

from pagefind.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.