close

Filter

Studio Developer Manual / Version 2412.0
Table Of Contents

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
          }),
        ],
      }),
    ],
  }),
})

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.