Skip to main content

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; and await fused.runPython(udfName, params) to run a connected canvas UDF and get its JSON result.

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

Loading ....

Raw schema

Download the full schema file: /widget-schema/html.json