Type Alias: WidgetOptions
WidgetOptions =
object
Initial widget appearance; saved user placement takes precedence.
Properties
bar?
optionalbar?:boolean
The widget also has a compact form: admitted on the top bar's line
(topbar.widget), and painted compact there and in the sidebars
(WidgetChromeProps.compact).
catalogTitle?
optionalcatalogTitle?:string
What the widget window calls it when title is the user's own (one chat
card per agent): « Agent chat » rather than the agent's name.
description?
optionaldescription?:string
One sentence on what the widget does, shown under its name in the widget window: what it shows or lets you do, not how it is built.
formerKeys?
optionalformerKeys?: readonlystring[]
Keys this widget was registered under before; '' names a keyless
registration. A place saved under one of them is handed down to the widget.
frame?
optionalframe?:"tile"|"none"
Use tile for host framing or none to render your own frame.
height?
optionalheight?:number
Initial fixed height in pixels before user resizing.
heightMode?
optionalheightMode?:"fixed"|"fill"
Fill the remaining zone height by default; users can choose a fixed size.
icon?
optionalicon?:string
Picto on the widget's card in the widget window: SVG markup (<svg …>)
or the URL of an SVG. Painted as a mask in the theme's text colour, so
only its shape counts — a 24×24 line drawing reads best.
minHeight?
optionalminHeight?:number
Minimum resize height in pixels.
placedByDefault?
optionalplacedByDefault?:boolean
Placed in zone on every view that has neither placed nor removed it yet,
instead of waiting in the palette. For a surface that was already on screen
before it became a widget.
title?
optionaltitle?:string
Card title; defaults to the registration key or plugin ID.
zone?
optionalzone?:string
Preferred first placement zone; absent zones remain pending.