Giter Club home page Giter Club logo

Comments (7)

cigolpl avatar cigolpl commented on June 10, 2024

Could you share a screenshot of your desired solution from UX standpoint ? I am asking because this could be done in various ways.

from itemsjs.

JG515 avatar JG515 commented on June 10, 2024

Thanks so much for getting back to us so quickly! Here is a screen shot with the kind of date range fields we would like to implement in our faceted search. We would like to do "Start Date" and "End Date" like below.

image

from itemsjs.

JG515 avatar JG515 commented on June 10, 2024

One of our goals for this week is to implement the date range search. We look forward to getting your guidance on the best way to accomplish it. Thanks again!

from itemsjs.

cigolpl avatar cigolpl commented on June 10, 2024

You can totally tackle this UI issue using the filter function. There's a great example you can check out right here: https://github.com/itemsapi/itemsjs/blob/master/docs/configuration.md.

Also, just a heads up, you can create faceted filters that would look something like this:

Years:
"2023" -> 100 movies
"2022" -> 50 movies
"2021" -> 120 movies

Tags:
"Drama" -> 200 movies
"Western" -> 50 movies

This is really where itemsjs comes into its own and shows off what it can do. Hope this helps!

from itemsjs.

JG515 avatar JG515 commented on June 10, 2024

How do we get the value of the text box into the filter function? It works when we hard code a number, but not when we try to get the value of the text box.

Please notice the number1 text box in the UI:

image

and how we tried to use it in the filter function:

image

full files attached

index.njk - Copy.txt
itemsjs-config.njk - Copy.txt

Thank you, Thank you!

from itemsjs.

JG515 avatar JG515 commented on June 10, 2024

Can we get a little help hooking up the text box in the UI to the itemsjs library? Not sure how to make this work.

from itemsjs.

cigolpl avatar cigolpl commented on June 10, 2024

We have several examples of this in our demo documentation, which you can find at https://github.com/itemsapi/itemsjs/blob/master/docs/demo.md. These examples include implementations using Vue and native JS, showing how to hook up a text box with ItemsJS. Please take a look and see if these examples help you solve your problem

from itemsjs.

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.