src/Filterizr.js
/**
   * Destroys the Filterizr instance and unbinds all events.
   */
Destroys the Filterizr instance and unbinds all events.
Destroys the Filterizr instance and unbinds all events .
destroy() {
    const { FilterContainer } = this.props;
    const { controlsSelector } = this.options;
    FilterContainer.destroy();
    $(window).off('resize.Filterizr');
    $(`${controlsSelector}[data-filter]`).off('click.Filterizr');
    $(`${controlsSelector}[data-multifilter]`).off('click.Filterizr');
    $(`${controlsSelector}[data-shuffle]`).off('click.Filterizr');
    $(`${controlsSelector}[data-search]`).off('keyup.Filterizr');
    $(`${controlsSelector}[data-sortAsc]`).off('click.Filterizr');
    $(`${controlsSelector}[data-sortDesc]`).off('click.Filterizr');
  }
destroy ( ) { const { FilterContainer } = this . props ; const { controlsSelector } = this . options ; FilterContainer . destroy ( ) ; $ ( window ) . off ( 'resize.Filterizr' ) ; $ ( ` ${ controlsSelector } ` ) . off ( 'click.Filterizr' ) ; $ ( ` ${ controlsSelector } ` ) . off ( 'click.Filterizr' ) ; $ ( ` ${ controlsSelector } ` ) . off ( 'click.Filterizr' ) ; $ ( ` ${ controlsSelector } ` ) . off ( 'keyup.Filterizr' ) ; $ ( ` ${ controlsSelector } ` ) . off ( 'click.Filterizr' ) ; $ ( ` ${ controlsSelector } ` ) . off ( 'click.Filterizr' ) ; }
Destroys the Filterizr instance and unbinds all events.
Destroys the Filterizr instance and unbinds all events .
// Unbind all events of FilterContainer and Filterizr // and remove inline styles. // Destroy all controls of the instance