UI Kit components
Jira UI Kit components
UI Kit hooks
Forge bridge APIs
Jira bridge APIs
Confluence bridge APIs
Dashboard bridge APIs (EAP)
Upgrade UI Kit versions
Last updated Aug 26, 2025

widget (EAP)

Use the widget APIs for dashboard widget view operations.

For module configuration and setup instructions, see Dashboard widget.

Setting preview configuration

widget.setPreviewConfig

Sets the preview configuration for the widget that appears when selected in the widget list. The configuration object replaces config in useWidgetConfig when the widget is rendered as a preview.

Usage

1
2
import { widget } from "@forge/dashboards-bridge";

widget.setPreviewConfig({
  title: "Preview Title",
  description: "This is a preview configuration",
});

Parameters:

  • previewConfig (WidgetConfig): The preview configuration object

Method signature

1
2
function setPreviewConfig(previewConfig: WidgetConfig): void;

type WidgetConfig = Record<string, unknown>;

Rate this page: