WidgetContainer
Interfaces
WidgetContainerProps
Properties
Property | Type | Description | Defined in |
---|---|---|---|
height | string | Height of the widget container. | canvas/components/WidgetContainer.tsx:21 |
id | string | ID of the widget. | canvas/components/WidgetContainer.tsx:13 |
setSetting | (setting : WidgetSetting ) => void | Callback function to update the setting of the specific widget. | canvas/components/WidgetContainer.tsx:17 |
setting | WidgetSetting | The setting of the widget. | canvas/components/WidgetContainer.tsx:15 |
width | string | Width of the widget container. | canvas/components/WidgetContainer.tsx:19 |
Functions
default()
default(
__namedParameters
):Element
The widget container component that wraps around each user widget.
It wraps the widget in a draggable container with a grip handle on the top right corner on hover. It adds no padding within the container to allow users to have full control over the appearance.
If the child (i.e., the widget) throws a rendering error, it will be caught by the error boundary and displayed with the ErrorDisplay component.
Parameters
Parameter | Type |
---|---|
__namedParameters | PropsWithChildren <WidgetContainerProps > |
Returns
Element