public function renderDataTableAjaxInit()
    {
        $renderedHeads = $this->renderHead();

        $view = new \Zend\View\Model\ViewModel();
        $view->setTemplate('data-table-init');
        $view->setVariable('headers', $renderedHeads);
        $view->setVariable('attributes', $this->getTable()->getAttributes());

        return $this->getRenderer()->render($view);

    }
public function renderDataTableAjaxInit()
    {
        $renderedHeads = $this->renderHead();

        $view = new \Zend\View\Model\ViewModel();
        $view->setTemplate('data-table-init');
        $view->setVariable('headers', $renderedHeads);
        $view->setVariable('attributes', $this->getTable()->getAttributes());

        return $this->getRenderer()->render($view);

    }
public function renderDataTableAjaxInit ( ) { $ renderedHeads = $ this -> renderHead ( ) ; $ view = new \ Zend \ View \ Model \ ViewModel ( ) ; $ view -> setTemplate ( 'data-table-init' ) ; $ view -> setVariable ( 'headers' , $ renderedHeads ) ; $ view -> setVariable ( 'attributes' , $ this -> getTable ( ) -> getAttributes ( ) ) ; return $ this -> getRenderer ( ) -> render ( $ view ) ; }
Rendering init view for dataTable

@return string
Rendering init view for dataTable