Studio Developer Manual / Version 2406.0
Table Of ContentsTo 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 }), ], }), ], }), })