public function disableFilterButton(bool $disable = true)
    {
        $this->tools = $this->tools->map(function ($tool) use ($disable) {
            if ($tool instanceof FilterButton) {
                return $tool->disable($disable);
            }

            return $tool;
        });
    }
public function disableFilterButton(bool $disable = true)
    {
        $this->tools = $this->tools->map(function ($tool) use ($disable) {
            if ($tool instanceof FilterButton) {
                return $tool->disable($disable);
            }

            return $tool;
        });
    }
public function disableFilterButton ( bool $ disable = true ) { $ this -> tools = $ this -> tools -> map ( function ( $ tool ) use ( $ disable ) { if ( $ tool instanceof FilterButton ) { return $ tool -> disable ( $ disable ) ; } return $ tool ; } ) ; }
Disable filter button.

@return void
Disable filter button .