igorsimb / mp-monitor

Django app for scraping Wildberries
1 stars 0 forks source link

Use ListJS for items in item_list #78

Open igorsimb opened 8 months ago

igorsimb commented 8 months ago

https://listjs.com/

Tiny, invisible and simple, yet powerful and incredibly fast vanilla JavaScript that adds search, sort, filters and flexibility to plain HTML lists, tables, or anything.

Real world example: https://www.ez2task.com/manage_users/

igorsimb commented 8 months ago

What are the pros and cons of using ListJS vs HTMX with filters? (https://www.youtube.com/watch?v=wD7VB17fLK4)

igorsimb commented 8 months ago

ListJS vs. HTMX for Filtering: Pros and Cons (Gemini)

ListJS:

Pros:

Cons:

HTMX:

Pros:

Cons:

Choosing between ListJS and HTMX:

Behavior of Filters on Refresh: HTMX vs. ListJS

Both HTMX and ListJS filters will not stay applied when you refresh the page. This is because:

Here's a breakdown of their specific behavior:

HTMX:

ListJS:

Alternative Solutions for Persistent Filters:

Remember, the best approach for persistent filters depends on your specific requirements and framework.