public function handlePerPage(\Nette\Forms\Controls\SubmitButton $button) { $perPage = (int) $button->form['count']->value; $this->perPage = $perPage == $this->defaultPerPage ? NULL : $perPage; $this->page = 1; $this->reload(); }