EloquentStudio / filter.js

Complete solution for client side filtering and rendering using JSON data
http://eloquentstudio.github.io/filter.js
MIT License
665 stars 183 forks source link

how can get the current page and checkboxs after make filter #158

Open am2en opened 6 years ago

am2en commented 6 years ago

how can get the current page and checkbox s selected after make filter and how fill last data with filter result after click browser go back

Acen commented 6 years ago

I was looking into this when I was using the script 6 months or so ago. This is kind of a self-handled sort of problem and the way I was going into fixing it was appending an array of "filter settings" into my URL then recording the change as a History update in the browsers API.

That way, when you do back on the browser it loads the settings from the URL as the script loads. It also means you can link users to pre-filtered settings which is nice.

Closed source chunk unfortunately due to it not actually being part of filter.js. If anyone makes a start on it though I can lend a hand when available.