Install an HTML widget
- Read the current selected page and its layout. Confirm the page is editable and has room.
- Call
addWidgetwithwidgetType: "html". It uses the first fitting free cells. Read the returned widget ID and address. Do not invent a placement argument at insertion. - Use
widgetMoveandwidgetResizewith logicalcellvalues if a different placement is needed. Check bounds and collision outcomes. - Patch the widget through a typed
patchWidgetaction using its actualwidgetAddressandvaluescontainingtitle,html,css,javascript,stateoritemStates. - Set
eventSubscriptionsthrough its saved public JSON record or a preserved complete configuration replacement. That field is not a typed widget-patch field. - Read the saved widget and inspect its rendered page. Use a persisted bridge acknowledgement when testing event delivery.
Do not replace the full home with a one-widget example. Read and preserve the current configuration before a complete replacement. Source edits can recreate the WebView, so wait for dikciz-ready in widget JavaScript. State-only patches send dikciz-state or dikciz-item-state without reloading the document. Give reusable cards unique data-dikciz-item-id values and use selfWidget.itemFor(element) for their state and files.