Prado\Web\UI\ActiveControls\TActiveDataGrid::createPagerButton PHP Метод

createPagerButton() защищенный Метод

Depending on the button type, a TActiveLinkButton or a TActiveButton may be created. If it is enabled (clickable), its command name and parameter will also be set. It overrides the datagrid's original method to create active controls instead, thus the pager will do callbacks instead of the regular postbacks.
protected createPagerButton ( $pager, $buttonType, $enabled, $text, $commandName, $commandParameter ) : mixed
Результат mixed the button instance
    protected function createPagerButton($pager, $buttonType, $enabled, $text, $commandName, $commandParameter)
    {
        if ($buttonType === TDataGridPagerButtonType::LinkButton) {
            if ($enabled) {
                $button = new TActiveLinkButton();
            } else {
                $button = new TLabel();
                $button->setText($text);
                return $button;
            }
        } else {
            $button = new TActiveButton();
            if (!$enabled) {
                $button->setEnabled(false);
            }
        }
        $button->setText($text);
        $button->setCommandName($commandName);
        $button->setCommandParameter($commandParameter);
        $button->setCausesValidation(false);
        $button->getAdapter()->getBaseActiveControl()->setClientSide($pager->getClientSide());
        return $button;
    }