Nextras\Datagrid\Datagrid::render PHP Метод

render() публичный Метод

****************************************************************************
public render ( )
    public function render()
    {
        if ($this->filterFormFactory) {
            $this['form']['filter']->setDefaults($this->filter);
        }
        $this->template->form = $this['form'];
        $this->template->data = $this->getData();
        $this->template->columns = $this->columns;
        $this->template->editRowKey = $this->editRowKey;
        $this->template->rowPrimaryKey = $this->rowPrimaryKey;
        $this->template->paginator = $this->paginator;
        $this->template->sendOnlyRowParentSnippet = $this->sendOnlyRowParentSnippet;
        $this->template->cellsTemplates = $this->cellsTemplates;
        $this->template->showFilterCancel = $this->filterDataSource != $this->filterDefaults;
        // @ intentionaly
        $this->template->setFile(__DIR__ . '/Datagrid.latte');
        $this->onRender($this);
        $this->template->render();
    }