appsmith
appsmith copied to clipboard
[Feature]: Customise datepicker shortcut menu
Is there an existing issue for this?
- [X] I have searched the existing issues
Summary
The date picker shortcut currently has fixed shortcuts in the shorcut menu. I would like to crate custom ones since the fixed ones are all to select dates in the past. It would be cool if we could provide our own object array of shortcuts something like:
[
{
label: "in 1 year",
value: new Date().getTime()+3.15576e+10 // current time in milliseconds + 1 year in milliseconds
},
{
label: "1 year ago",
value: new Date().getTime()-3.15576e+10 // current time in milliseconds - 1 year in milliseconds
}
]
Why should this be worked on?
- Custom shortcuts would allow to set different time scopes for different use cases. For example some use cases need shortcuts by 1 year increments in the past, some by 1 day increments in the future.