VolkovLabs / volkovlabs-dynamictext-panel

Business Text Panel for @grafana
https://docs.volkovlabs.io
Apache License 2.0
78 stars 14 forks source link

Used JaveScript Code Can't used #140

Closed yens01 closed 1 year ago

yens01 commented 1 year ago

i used the dynamic text javescript code to achieve thousandths 1200=> 1,200 But it cant run can you help me image

mikhail-vl commented 1 year ago

@yens01 <script> tag is unsafe to use like that, and I would not recommend doing it that way.

I would suggest implementing a Handlebars handler instead: https://volkovlabs.io/plugins/volkovlabs-dynamictext-panel/code#define-custom-handlebars-helper Let me know if it helps.

yens01 commented 1 year ago

thank you i succeeded image

mikhail-vl commented 1 year ago

@yens01 Awesome, let us know if there is anything else.