Unable to perform simple hello world with Dynamic Text Plugin

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

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

what drawer is that?

The one that opens when you inspect the data for exemple (on th right=

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

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