Is it possible to create shortcuts for the slate date range picker widget that are in the future relative to the current day (e.g. tomorrow, next week, next month)?
Yes, it is possible to create relative shortcuts for the date range picker widget.
In the Date range Picker widget editor:
- Enable shortcuts by checking
Shortcuts enabled
- Specify the desired range under
Ranges
- Specify the desired label for the range under
Labels
To create relative dates for the ranges, you could create Functions that return the relative dates that are provided to the Range input via Handlers.
For example, check out this configuration:
1 Like