Studio Developer Manual / Version 2404
Table Of Contents
A widget of type SimpleSearchWidgetType
displays the result of a search for
contents of a configurable type containing a configurable text.
By default, the search is limited to the preferred site, if such a site is set.
Through the state class SimpleSearchWidgetState
,
the dashlet provides the associated configuration options
contentType
, searchText
, and preferredSite
.
An example configuration of this widget might look like this:
import ConfigureDashboardPlugin from "@coremedia/studio-client.main.editor-components/sdk/dashboard/ConfigureDashboardPlugin"; import SimpleSearchWidgetState from "@coremedia/studio-client.main.editor-components/sdk/dashboard/widgets/search/SimpleSearchWidgetState"; import SimpleSearchWidgetType from "@coremedia/studio-client.main.editor-components/sdk/dashboard/widgets/search/SimpleSearchWidgetType"; //... new ConfigureDashboardPlugin({ widgets: [ new SimpleSearchWidgetState({ contentType: "CMPicture", }), ], types: [ new SimpleSearchWidgetType({}), ], })
Example 9.75. Simple Search Widget Configuration