Hello!
Currently, the RelativeDataPicker component allows users to switch between "absolute" and "relative" modes by click on f(х) button. However, there is no built-in way to track when the mode is switched. This limits the ability to customize the UI based on the selected mode.
It could be nice to have a callback or event that triggers when the mode is changed. This would allow to dynamically adjust the UI based on the selected mode. For example:
- When "absolute" mode is selected, a calendar could be displayed in a popup.
- When "relative" mode is selected, a set of predefined presets (e.g., "Last 7 days", "Last 30 days") could be shown.