close

Filter

loading table of contents...

Studio Developer Manual / Version 2404

Table Of Contents

9.15.5.3 Disable Default Search Filter

To disable a default search filter, you will have to remove it from the list of filters from the corresponding filters panel. The given example shows how to remove the status filter from the Content search filter list.

import Config from "@jangaroo/runtime/Config";
import ConfigUtils from "@jangaroo/runtime/ConfigUtils";
import RemoveItemsPlugin from "@coremedia/studio-client.ext.ui-components/plugins/RemoveItemsPlugin";
import SearchFilters from "@coremedia/studio-client.main.editor-components/sdk/collectionview/search/SearchFilters";
import StatusFilterPanel from "@coremedia/studio-client.main.editor-components/sdk/collectionview/search/StatusFilterPanel";

Config(SearchFilters, {
  ...ConfigUtils.append({
    plugins: [
      Config(RemoveItemsPlugin, {
        items: [
          Config(StatusFilterPanel, {
            itemId: $STATUS_FILTER_ID
          }),
        ],
      }),
    ],
  }),
})

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

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