i m new to grafana and dynamic text panel.
Trying to explore the dynamic text panel with simple hello world option.
Given my settings.
In Dynamic Text:
Content:
Click me
JavaScript code:
function myFunction() {
console.log(‘hello world’)
}
With this when i click “Click me” button. nothing happens.
What I am doing wrong?
@kaymatrix It may be related to the Sanitizing configuration
It is the code editor where you can place the parsing commands or, in other words, create a visualization template for your data. To reference the data elements in your template, use double and triple braces.
1 Like
If this is for million rows issue, it is not going to fix the underlying issue. Like it was mentioned in previous threads, the api needs to be dealt with 1st. That is where the real issue is.
1 Like
Hi,
Did you found a solution ? I m facing the same even with html satanize option set to true.
what specific issue are you dealing with? share your code please
Hi , for example, a very simple javascript test is not working.
Where am I wrong ?
Thanks for your support.
remove the event listener
Perfect !!! Thanks a lot !
By the way, is it possible for exemple to open the drawer with a iframe inside (using javascript) ?
In fact on click on data table, I would like to open the drawer with a page (all is internal, same subdomain) ?
Thanks a lot
The one that opens when you inspect the data for exemple (on th right=
yosiasz
January 18, 2024, 4:51pm
11
non tu ne peux pas. pourquoi veux tu ouvrir ce panel?
Pour affcher un outil avec mon code en paramètre de l’url mais du coup je vais simplement utiliser GitHub - wes-goulet/side-drawer: A simple side drawer written as HTML custom element et injecter ce que je veux alors ! Ca doit le faire
Merci encore pour ton aide
yosiasz
January 18, 2024, 5:21pm
13
il semble que tu ne lis pas la documentation
1 Like
Si si je t’indiquais juste ce qu j’allais faire, pour répondre à ta question, j’avais bien vu cette partie de la doc.
Merci encore.
1 Like