Filter search by date in search-ui

Good point, I noticed the documentation doesn't really explain the parameters that setFilter takes. It would be super helpful if we could get TypeScript definitions created for this project... in the meantime I updated the docs.

If you looks at the definition for FilterValue you can see what to pass in here.

setFilter(
    "published_timestamp",
   {
     "from": "2020-12-15T00:00:00.000Z",
     "to": "2020-12-15T23:59:59.000Z",
     "name": "Published Timestamp"
  }
)
2 Likes