-
Notifications
You must be signed in to change notification settings - Fork 11.6k
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
Access to config within JS in panel #387
Comments
HTML panel? You mean the text panel? The configuration object is only accessable through a requirejs component. |
Yes, the text panel in HTML mode. I stuck a bit of JS in there. Do you have an example of how I could access the config.js from a random bit of JS on the page (one that's not part of the angular app). |
Hm... try this. require(['config'], function(config) {
// do something
}); No guarantee that this will work :) |
That very much did work. Wrote a small snippet of ugly code to generate an ugly list of dashboards to place on the home dashboard. My users found it useful. |
This is more a question than an issue. How would I access the config object from a bit of JS in an HTML panel, specifically the elasticsearch URL.
The text was updated successfully, but these errors were encountered: