iTwin / iTwinUI

A design system for building beautiful and well-working web interfaces.
https://itwin.github.io/iTwinUI/
MIT License
92 stars 35 forks source link

Add year selection option to DateRangeFilter and DatePickerInput #1984

Closed wilmaier closed 3 weeks ago

wilmaier commented 3 weeks ago

Feature

The DateRangeFilter and DatePickerInput components do not provide the showYearSelection prop to enable for the DatePicker. Could this prop get added to DateRangeFilterOptions, DateRangeFilterProps and DatePickerInputProps? Or maybe just hard-coded to true on DatePicker if it seems like everyone would need that?

Examples

No response

mayank99 commented 3 weeks ago

We'll support this in DateRangeFilter 👍

It's also worth noting that DatePickerInput is an implementation detail of DateRangeFilter, and you shouldn't need to know which props it has or even that it exists at all.

mayank99 commented 2 weeks ago

This is now available in 3.9.0 🚀

tableFilters.DateRangeFilter({ showYearSelection: true })