Other Facets widgets like the base Links and Checkboxes widgets support an optional "Reset" link. It would be nice if Facets Date Range supported that as well. It could be optional and disabled by default, so it would not adversely affect any existing installations.
1. Add Facets Date Range widget.
2. See no "Show reset link" option.
3. Be sad.
Add "Show reset link" option.
1. Add "Show reset link" option to DateRangeWidget.
2. Merge code changes.
3. Be happy.
This would add 3 new fields to the widget configuration:
1. Show reset link
2. Reset text
3. Hide reset link when no facet item is selected
I've got working code based on how it's done in the LinksWidget plugin. Patch to follow.
Needs review
1.0
Code