-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DT with Grafana 11 fails for Date-Picker flatpickr #309
Comments
This was working fine in Grafana 10 x |
Thanks @yosiasz this example is working but can you try with specific themes as in https://flatpickr.js.org/examples/ on grafana-11 ? |
in the ACR if u go beyond basic example of adding async () => { is it working for you ? For me , the async part is not executing at all... |
let me try the non basic stuff |
Sorry should be
does this work for you in 11? :( |
another option that could work is copy all those files locally in public folder |
also close the dashboard, refresher browser |
@yosiasz this was working earlier in v10 . is this working for you in Grafana 11 ? |
yes working in v11 |
Can you please export the dashboard and share the json ? Not sure what I am missing 😕 |
tried local version - same issue VM2391:5 Uncaught (in promise) ReferenceError: flatpickr is not defined |
apologies! it does not work in v11. I was running on same port as v10.4.1 |
it does not work because DT is supported only up to v10 of grafana
|
@yosiasz That's the minimum requirements. It should support v11. We are working on a new release and will look into it. |
Yes even leaflet.js not working... |
@samant-rags We discussed it with @asimonok today. Grafana introduced breaking change in v11 which prevents external modules to load. Similar to the behavior G10 had in the Edit mode. We are looking for the solution and will get back to you. |
@samant-rags since Grafana 11, the external scripts are deprecated. Please use import instead. Flatpickr working example in Grafana 11 After Content Ceady code
Dashboard json
|
what?!?!?! we can do imports now? oh my goodness!! you guys are amazing!! |
@yosiasz yes, the import function is supported. Also we will update the documentation how to use it |
Thanks a lot @asimonok @mikhail-vl for this solution. Great to see this support for Import function .. however if we have to import Thanks @yosiasz for trying along ! |
@samant-rags sure. You can use
|
In Grafana 11 with Dynamic Text Plugin,
when trying to load Date-Picker flatpickr plugin , the panel crashes with error
Setup DT with
https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css
https://cdn.tailwindcss.com
https://cdn.jsdelivr.net/npm/flatpickr
try and initialize below js under ::: After Content Ready
flatpickr('#calendar-range', {
"mode": "range"
});
The text was updated successfully, but these errors were encountered: