Skip to content

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

Open
@hydrosquall

Description

@hydrosquall

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

  • Add a boolean prop disableFilterControls that defaults to false, which hides the show/hide filter button.
  • (Optional, probably more complex if the component isn't already maintaining internal state): Add a boolean prop disableSetUrlParams that defaults to false, which enables state to be saved internally to the component, doesn't modify the parent page's URL parameters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions