src/Filterizr.js
/**
   * Filters the items in the grid by a category
   * @param {String} category by which to filter
   */
Filters the items in the grid by a category
@param {String} category by which to filter
Filters the items in the grid by a category @param { String } category by which to filter
filter(category) {
    const {
      searchTerm,
      FilterContainer,
      FilterItems,
    } = this.props;
    FilterContainer.trigger('filteringStart');
    this.props.filterizrState = FILTERIZR_STATE.FILTERING;
    if(!category) return;
    category = Array.isArray(category)
      ? category.map(c => c.toString())
      : category.toString();
    const FilteredItems = this.searchFilterItems(
      this.filterFilterItems(FilterItems, category),
      searchTerm
    ); 
    this.props.FilteredItems = FilteredItems;
    this.render(FilteredItems);
  }
filter ( category ) { const { searchTerm , FilterContainer , FilterItems , } = this . props ; FilterContainer . trigger ( 'filteringStart' ) ; this . props . filterizrState = FILTERIZR_STATE . FILTERING ; if ( ! category ) return ; category = Array . isArray ( category ) ? category . map ( c => c . toString ( ) ) : category . toString ( ) ; const FilteredItems = this . searchFilterItems ( this . filterFilterItems ( FilterItems , category ) , searchTerm ) ; this . props . FilteredItems = FilteredItems ; this . render ( FilteredItems ) ; }
Filters the items in the grid by a category
 @param {String} category by which to filter
Filters the items in the grid by a category @param { String } category by which to filter
// Trigger filteringStart event // Set animation state to trigger callbacks // Cast category to string or array of strings // Filter items and optionally apply search if a search term exists // Update props // Render the items