Git Product home page Git Product logo

Comments (8)

jdbwin avatar jdbwin commented on May 26, 2024 4

Nm, figured it out :)

Looking through the following was a help:

https://github.com/ForestAdmin/forest-movies

from forest-rails.

arnaudbesnier avatar arnaudbesnier commented on May 26, 2024 1

Hi @jdbwin sorry for the late response, I have added an issue about that. One of our developer will investigate this issue in next week sprint.

Thanks for your patience!

from forest-rails.

jdbwin avatar jdbwin commented on May 26, 2024

I have pagination working fine with SmartCollections, however, I can't figure out how to get search working.

Right now, when I check the view for my SmartCollection, the search bar is disabled client side. What is expected to be passed so that a SmartCollection is searchable?

Thanks!!

from forest-rails.

arnaudbesnier avatar arnaudbesnier commented on May 26, 2024

If you want to implement the search, you need to implement it in the controller index action. Here is the documentation for Smart Collections : http://doc.forestadmin.com/developers-guide/#creating-a-smart-collection

About the disabled search bar you noticed, it might be a design regression of our new interface.

from forest-rails.

jdbwin avatar jdbwin commented on May 26, 2024

Hey @arnaudbesnier ,

Thanks for this!

I followed the docs here when creating a Smart Collection. The search bar is still disabled when implementing the search in the controller.

from forest-rails.

arnaudbesnier avatar arnaudbesnier commented on May 26, 2024

Hey @jdbwin, good news, the search bar will be back soon. This PR will let developers set the is_searchable property to true (default value is false) to display the search bar for Smart Collections (when, as a developer, you implemented the Smart Collection search).

This fix will be released in the next release!

from forest-rails.

jdbwin avatar jdbwin commented on May 26, 2024

@arnaudbesnier ,

That's great to hear!

Thanks for the update on the situation and the work!

from forest-rails.

arnaudbesnier avatar arnaudbesnier commented on May 26, 2024

@jdbwin, this is now released.
You have to do 2 things to make it work:

  • Upgrade to the latest liana version,
  • define is_searchable: true for the Smart Collections having the search implemented.

🌲🌲🌲

from forest-rails.

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.