Context: We want to be able to store and restore the date range selection set by the user.
The first thing to do is to dispatch an event when the date range selection changes.
As of now, an event is dispatched when the date range changes. It's ok, but with that we only have the date range {since/until}. Now we want to have the date range selection which is an object like: {type: 'live'} or {type:'predefined', def: 'lastHour'} ...
Context: We want to be able to store and restore the date range selection set by the user.
The first thing to do is to dispatch an event when the date range selection changes.
As of now, an event is dispatched when the date range changes. It's ok, but with that we only have the date range {since/until}. Now we want to have the date range selection which is an object like:
{type: 'live'}
or{type:'predefined', def: 'lastHour'}
...