close

Filter

Studio Developer Manual / Version 2412.0
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.78. Simple Search Widget Configuration


Was this article useful?

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.