Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch add attributes to filters #558

Merged

Conversation

bdelamatre
Copy link
Contributor

This PR adds a new $attributes property to filters. This allows for custom attributes to be added to a filter when calling __construct() or make(). Presently, this it to accommodate custom usage of filters() (i.e. rendering on a dashboard search with multiple filters) and doesn't affect any of the built-in filter rendering.

While this has no effect on the current usage of filters, if approved, it would allow us to make a later PR that adds support for rendering attributes on the filter resources. For example, we can merge CSS classes defined with Filter::make() into the rendering of that filter.

@rappasoft rappasoft added the Awaiting Next Release Currently merged into development awaiting a release to master label Nov 20, 2021
@rappasoft rappasoft mentioned this pull request Nov 21, 2021
@rappasoft rappasoft merged commit 9293002 into rappasoft:master Nov 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Next Release Currently merged into development awaiting a release to master
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants