Contribution based information describing Dashboard Widgets.

interface WidgetMetadata {
    allowedSizes?: WidgetSize[];
    analyticsServiceRequired?: boolean;
    catalogIconUrl?: string;
    catalogInfoUrl?: string;
    configurationContributionId?: string;
    configurationContributionRelativeId?: string;
    configurationRequired?: boolean;
    contentUri?: string;
    contributionId?: string;
    defaultSettings?: string;
    description?: string;
    isEnabled?: boolean;
    isNameConfigurable?: boolean;
    isVisibleFromCatalog?: boolean;
    keywords?: string[];
    lightboxOptions?: LightboxOptions;
    loadingImageUrl?: string;
    name?: string;
    publisherName?: string;
    supportedScopes?: WidgetScope[];
    tags?: string[];
    targets?: string[];
    typeId?: string;
}

Properties

allowedSizes?: WidgetSize[]

Sizes supported by the Widget.

analyticsServiceRequired?: boolean

Opt-in boolean that indicates if the widget requires the Analytics Service to function. Widgets requiring the analytics service are hidden from the catalog if the Analytics Service is not available.

catalogIconUrl?: string

Resource for an icon in the widget catalog.

catalogInfoUrl?: string

Opt-in URL string pointing at widget information. Defaults to extension marketplace URL if omitted

configurationContributionId?: string

The id of the underlying contribution defining the supplied Widget custom configuration UI. Null if custom configuration UI is not available.

configurationContributionRelativeId?: string

The relative id of the underlying contribution defining the supplied Widget custom configuration UI. Null if custom configuration UI is not available.

configurationRequired?: boolean

Indicates if the widget requires configuration before being added to dashboard.

contentUri?: string

Uri for the widget content to be loaded from .

contributionId?: string

The id of the underlying contribution defining the supplied Widget.

defaultSettings?: string

Optional default settings to be copied into widget settings.

description?: string

Summary information describing the widget.

isEnabled?: boolean

Widgets can be disabled by the app store. We'll need to gracefully handle for: - persistence (Allow) - Requests (Tag as disabled, and provide context)

isNameConfigurable?: boolean

Opt-out boolean that indicates if the widget supports widget name/title configuration. Widgets ignoring the name should set it to false in the manifest.

isVisibleFromCatalog?: boolean

Opt-out boolean indicating if the widget is hidden from the catalog. Commonly, this is used to allow developers to disable creation of a deprecated widget. A widget must have a functional default state, or have a configuration experience, in order to be visible from the catalog.

keywords?: string[]

Keywords associated with this widget, non-filterable and invisible

lightboxOptions?: LightboxOptions

Opt-in properties for customizing widget presentation in a "lightbox" dialog.

loadingImageUrl?: string

Resource for a loading placeholder image on dashboard

name?: string

User facing name of the widget type. Each widget must use a unique value here.

publisherName?: string

Publisher Name of this kind of widget.

supportedScopes?: WidgetScope[]

Data contract required for the widget to function and to work in its container.

tags?: string[]

Tags associated with this widget, visible on each widget and filterable.

targets?: string[]

Contribution target IDs

typeId?: string

Deprecated: locally unique developer-facing id of this kind of widget. ContributionId provides a globally unique identifier for widget types.