close

Filter

loading table of contents...

Studio Developer Manual / Version 2107

Table Of Contents

7.12.5.4 Disable Default Search Filter

To disable a default search filter, you will have to remove it from the list of enabled filters, for example, in the init method of a corresponding Studio plugin. Disabling the filter will also remove it from the filters in the library's search mode.

public class FooStudioPluginBase extends StudioPlugin {

  override
  public function init(editorContext:IEditorContext):void {
    super.init(editorContext);

    <!-- 'fooFilter' is the FILTER_ID of the added filter panel -->
    editorContext.getEnabledSearchFilterIds()
        .splice(editorContext.getEnabledSearchFilterIds()
        .indexOf("fooFilter"), 1);
  }
}
Warning

Warning

Please note, that you do not need to remove the filter via RemoveItemsPlugin. Removing the filter manually, could result in errors in the Studio.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

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