Closed rozetko closed 3 years ago
Closes #41
This PR makes calendars work in Grafana 6 and 7
Note: it breaks compatibility with Grafana < 6.2.0
datepicker directive which were used to render calendars was removed from Grafana in some 6.x version (don't know which one exactly)
datepicker
TimePicker
TimeRangePicker
react2angular
window
window as any
@types/grafana
plugin.json
Closes #41
This PR makes calendars work in Grafana 6 and 7
Before
After (Grafana 6.6.1)
After (Grafana 7.1.5)
Problem
datepicker
directive which were used to render calendars was removed from Grafana in some 6.x version (don't know which one exactly)Changes
TimePicker
(Grafana 6.x) orTimeRangePicker
(Grafana 7.x) React component to render timerange pickerreact2angular
function from Grafana to convert it the component to Angular directiveOther changes
window
usage (window as any
->window
), it's possible after@types/grafana
changesplugin.json