traingenerator icon indicating copy to clipboard operation
traingenerator copied to clipboard

Programmatically select range

Open davidecampello opened this issue 3 years ago • 3 comments

Hi, is it possible to select a range not clicking to dates but for example clicking on a button like "Last 3 months" and then view the range selected on the calendar? Thanks

davidecampello avatar Jul 25 '21 15:07 davidecampello

@davidecampello I'm wondering about the same issue, if You get rid of this please let me know.

texarr avatar Aug 12 '21 05:08 texarr

Hi! unfortunatly not. As a workaround I created a custom modal with three buttons. When clicked they dismiss the modal passing the range I want.

image

davidecampello avatar Aug 12 '21 07:08 davidecampello

Thanks for the reply. I have done it the same way, without integration with the calendar. In my case, I need to pass the selected range by button when getting the calendar modal again, but there is a field for that in options input.

texarr avatar Aug 12 '21 08:08 texarr