1. Classes

WidgetRequestData

Version:
TypeClass
Import path@sitecore-cloudsdk/search/browser

Data about the widget or widgets to retrieve.

Constructor

WidgetRequestData(widgetItems: WidgetItem[])

Parameters

NameTypeDescription
widgetItemsWidgetItem[]Required.

Array of WidgetItem objects that describe each widget to retrieve.

Minimum length: 1.

Properties

NameTypeDescription
_widgetItemsWidgetItem[]Required.

Array of WidgetItem objects that describe each widget to retrieve.

Minimum length: 1.

Methods

_validateWidgetItems

Validates widget items.

Signature

private _validateWidgetItems(widgetItems: WidgetItem[]): void

Parameters

NameTypeDescription
widgetItemsWidgetItem[]Required.

Array of WidgetItem objects that describe each widget to retrieve.

Minimum length: 1.

Return value

Returns void.

Errors

toDTO

Maps the widget items to their DTO (data transfer object) format.

Signature

toDTO(): WidgetDTO

Return value

Returns the widget items in a standardized DTO format.

If you have suggestions for improving this article, let us know!