xref: /openbmc/webui-vue/src/components/Mixins/SearchFilterMixin.js (revision ba91c4996e37e92b247cee72272f2afe38efd81b)
1export const searchFilter = null;
2
3const SearchFilterMixin = {
4  methods: {
5    onChangeSearchInput(searchValue) {
6      this.searchFilter = searchValue;
7    },
8    onClearSearchInput() {
9      this.searchFilter = null;
10    },
11  },
12};
13
14export default SearchFilterMixin;
15