# Filter > 原文:[https://docs.gitlab.com/ee/development/fe_guide/droplab/plugins/filter.html](https://docs.gitlab.com/ee/development/fe_guide/droplab/plugins/filter.html) * [Usage](#usage) # Filter[](#filter "Permalink") `Filter`是一个插件,它允许使用简单的模糊字符串搜索输入值来过滤已添加到下拉列表中的数据. ## Usage[](#usage "Permalink") 将`Filter`对象添加到`DropLab.prototype.init`或`DropLab.prototype.addHook`调用的插件数组中. * `Filter`需要`template`的配置值. * `template`应该是要与用户输入字符串进行比较以进行过滤的数据数组中对象的键. ```