nteract / data-explorer

The Data Explorer is nteract's automatic visualization tool.
https://data-explorer.nteract.io/
BSD 3-Clause "New" or "Revised" License
103 stars 12 forks source link

[feature] Permit parent page to modify the behavior of the "show filters" button #83

Open hydrosquall opened 2 years ago

hydrosquall commented 2 years ago

Motivation

When embedding the data-explorer in a page that uses URL params like the Datasette project (see here ), using the "filters" bar can clobber state that was set by the parent page. It would be useful to be able to let embedders of this component disable this behavior.

Recommendation

hydrosquall commented 2 years ago

Concrete example to reproduce

  1. Open the "table" view of a page
  2. Type in a string filter for a string column. For quick previews, the page will live filter the rows, but URL state is intact
  3. Press "enter". The URL params of the page are replaced, any existing params are removed completely.

Alternate solutions