What are the Slack Archives?
It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hey everyone, I am looking for a dropdown filter above the listing of the category module. same as

Hey everyone,
I am looking for a dropdown filter above the listing of the category module. same as the image attached. can anyone tell me how can I add drop-downs there and how can I pass data to the backend on the change event to filter out records??
Comments
-
You could fetch the table data again once a filter has changed and pass the filter value into the request as a query parameter.
An example on how to use query parameters to set filters on a table can be found in\Spryker\Zed\ProductManagement\Communication\Controller\EditController::variantTableAction
.For the GUI part there is no example to my knowledge, so this might be something you will need to implement on your own.
0 -
How can I trigger the event
ajax.reload
of the listing table?? Do I need to add any custom js or is there any inbuilt function there??0 -
I think you can call
$('<your table selector>').dataTable.api().ajax.reload()
0 -
Yes I know that, But from where can I override the JS code of datatable??
0 -
You don't want to overwrite JS code of the data table at all. You need to add additional JS code that is executed.
https://sprykercommunity.slack.com/archives/CKJRJM5FG/p1667463355018449?thread_ts=1667460311.167379&cid=CKJRJM5FG gives an example on how to add your own CSS, but same applies for JS as well.0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 77 Spryker News
- 940 Developer Corner
- 796 Spryker Development
- 90 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 28 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 33 Product & Business Questions
- 69 Spryker Safari Questions
- 50 Random