Html
Type: html
Sandboxed HTML renderer with $param and {{udf}} substitution and window.fused API.
Supports children: No
Sandboxed HTML with $param_name and {{udf_name}} substitution. Exposes window.fused: fused.env ("workbench"); fused.params.get(name) / .getAll() / .set(name, value) / .set({...}) / .set(name, null) to clear / .onChange(cb), backed by canvas params so connected nodes and $param placeholders react; await fused.runPython(udfName, params) to run a connected canvas UDF and get its JSON result; and await fused.query(sql, { params, maxRows }) to run one DuckDB SELECT over {{name}} sources (a connected fused-map's layer id, a sql-runner's or h3-query's name, or a connected UDF) and get the rows.
Example
{
"type": "html",
"props": {
"value": "<h2>Hello, $user_name!</h2><p>Selected city: <b>$city</b></p>"
}
}
Every widget is defined as { "type": "html", "props": { ... } }. The properties below describe the props object.
Props
Raw schema
Download the full schema file: /widget-schema/html.json