AdminLTE/plugins/filterizr/FilterItems.d.ts

23 lines
853 B
TypeScript
Raw Normal View History

import { Filter } from './ActiveFilter';
import FilterItem from './FilterItem';
import FilterizrOptions from './FilterizrOptions/FilterizrOptions';
export default class FilterItems {
private filterItems;
private options;
constructor(filterItems: FilterItem[], options: FilterizrOptions);
readonly length: number;
get(): FilterItem[];
getItem(index: number): FilterItem;
set(filterItems: FilterItem[]): void;
destroy(): void;
updateTransitionStyle(): void;
updateDimensions(): void;
push(filterItem: FilterItem): number;
getFiltered(filter: Filter): FilterItem[];
getFilteredOut(filter: Filter): FilterItem[];
getSorted(sortAttr?: string, sortOrder?: 'asc' | 'desc'): FilterItem[];
getSearched(searchTerm: string): FilterItem[];
getShuffled(): FilterItem[];
private shouldBeFiltered;
}