Comments (2)
from gapit-htmlgraphics-panel.
I'm struggling to reproduce the bug you're talking about.
I've noticed that you are using the panelupdate event
inside onRender
(htmlNode.addEventListener('panelupdate', refreshPanel);
. This is usually never intended as you'll create a lot of event listeners.
Move the entire code into onInit
or remove htmlNode.addEventListener('panelupdate', refreshPanel);
.
The panelupdate event
is meant to be used inside onInit
so it can simulate how onRender
is triggered.
In the source code onRender
and panelupdate event
is triggered at the same place
gapit-htmlgraphics-panel/src/HTMLPanel.tsx
Lines 267 to 268 in 5c05b16
from gapit-htmlgraphics-panel.
Related Issues (20)
- Code editor type suggestions aren't working in v8.4.0+
- htmlNode.createElement("option") not working HOT 2
- examples communicate-between-panels not working in 8.4 HOT 9
- Invoke PanelUpdate event on change of variables via GUI. HOT 5
- Use same scrollbar theme as Grafana
- Instructions to creating bundlers with external JS libraries HOT 29
- Dynamically update the codeData/customProperties type in onInit/onRender code HOT 1
- Support for handlerbar
- Neovis.js html code HOT 3
- A lot of links are broken on the website to Grafana HOT 1
- Docs example for changing SVG properties HOT 3
- Load SVG from file or url HOT 9
- How to change colors with SVG HOT 5
- Custom fonts HOT 2
- Collapsible code editors in panel options HOT 3
- Replace deprecated getLocationSrv HOT 4
- How to use HTML Graphic in Grafana version 6.2 HOT 4
- Import interfaces instead of copying interfaces HOT 5
- external js script are loaded but not recognized HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gapit-htmlgraphics-panel.