This action updates the content of an HTML widget or the Text Widget in a dashboard. Supports Custom HTML widgets and Text widgets.Documentation Index
Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
Use this file to discover all available pages before exploring further.
- Custom HTML Widget
- Text Widget
| Parameter | Description |
|---|---|
| Widget Type | The type of widget whose content you want to update (for example, HTML Widget). |
| Content | The complete HTML page — either static or dynamic — that will replace the existing content in the Custom HTML widget. |
| Dashboard ID | The unique ID of the dashboard containing the widget. |
| Widget ID | The unique ID of the widget to update. |

For dynamic Custom HTML widgets (animations, async data, delayed rendering), call the following from your script the moment your content is fully rendered so dashboard PDF exports wait for it:
parent.postMessage('html-widget:ready', '*');Where you put the call depends on what your HTML does.Common patterns:-
After a delayed render:
setTimeout(() => { /* render */ parent.postMessage('html-widget:ready', '*'); }, 1200); -
after an async fetch / data load:
fetch('...').then(data => { renderChart(data); parent.postMessage('html-widget:ready', '*'); }); -
After window load for simple content:
window.addEventListener('load', () => parent.postMessage('html-widget:ready', '*')); - If the call is omitted, the export falls back to a 5-second wait after the iframe loads and screenshots whatever is on screen.
