public function disableReset(bool $disable = true)
    {
        if ($disable) {
            array_delete($this->buttons, 'reset');
        } elseif (!in_array('reset', $this->buttons)) {
            array_push($this->buttons, 'reset');
        }

        return $this;
    }
public function disableReset(bool $disable = true)
    {
        if ($disable) {
            array_delete($this->buttons, 'reset');
        } elseif (!in_array('reset', $this->buttons)) {
            array_push($this->buttons, 'reset');
        }

        return $this;
    }
public function disableReset ( bool $ disable = true ) { if ( $ disable ) { array_delete ( $ this -> buttons , 'reset' ) ; } elseif ( ! in_array ( 'reset' , $ this -> buttons ) ) { array_push ( $ this -> buttons , 'reset' ) ; } return $ this ; }
Disable reset button.

@return $this
Disable reset button .