Gravatar for dshanmugasundaram@rightpoint.com

Question by Deepa, Jan 17, 2019 3:57 PM

How can we create a Date Range Picker facet?

Hi,

I have a News Page where we want to have the date picker as our date range facet instead of the default slider.

I found this link which has the exact need as i do but it is an old link

https://answers.coveo.com/questions/5466/how-can-we-achieve-date-range-picker-facet.html?childToView=19357#answer-19357

Do you have any documentation that could guid me with hive framework?

2 Replies
Gravatar for olamothe@coveo.com

Answer by olamothe, Jan 17, 2019 4:14 PM

Would this component do the job for you ?

https://coveo.github.io/search-ui/components/timespanfacet.html

You can see it in action if you click the "Show a live example of TimespanFacet" button in that documentation page.

If you really need a more complex "calendar date picker", then there is not out of the box component for this, and would require quite a bit of custom code.

Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Jan 17, 2019 4:27 PM

The Coveo Labs GitHub account have a RangePicker component that could fit your needs: https://github.com/coveo-labs/search-ui-custom-components/tree/master/src/components/RangePicker

I have never used it so I do not know what it looks like.

Gravatar for dshanmugasundaram@rightpoint.com

Comment by Deepa, Jan 17, 2019 4:37 PM

I am looking for something like

TimeSpan and RangePicker are radio buttons and it will not do the job for me. Any other suggestions?

Ask a question