public function setHeaders($headers)
    {
        // Set horizontal size of element
        $this->hSize = count($headers);
        $this->data('grid-size', $this->hSize);

        // Add headers
        $gridHeader = $this->appendSimpleRow($headers, 'DataTableHeader', $header = true);

        // Add checkable headers
        if ($this->checkable) {
            $this->appendCheckRow($gridHeader, null, false);
        }

        // Create new grid content wrapper
        $gridListContentWrapper = $this->getFormFactory()->buildHtmlElement('div', '', '', 'DataTableContentWrapper');
        $this->gridList->append($gridListContentWrapper);
        $this->gridList = $gridListContentWrapper;
    }
public function setHeaders($headers)
    {
        // Set horizontal size of element
        $this->hSize = count($headers);
        $this->data('grid-size', $this->hSize);

        // Add headers
        $gridHeader = $this->appendSimpleRow($headers, 'DataTableHeader', $header = true);

        // Add checkable headers
        if ($this->checkable) {
            $this->appendCheckRow($gridHeader, null, false);
        }

        // Create new grid content wrapper
        $gridListContentWrapper = $this->getFormFactory()->buildHtmlElement('div', '', '', 'DataTableContentWrapper');
        $this->gridList->append($gridListContentWrapper);
        $this->gridList = $gridListContentWrapper;
    }
public function setHeaders ( $ headers ) { // Set horizontal size of element $ this -> hSize = count ( $ headers ) ; $ this -> data ( 'grid-size' , $ this -> hSize ) ; // Add headers $ gridHeader = $ this -> appendSimpleRow ( $ headers , 'DataTableHeader' , $ header = true ) ; // Add checkable headers if ( $ this -> checkable ) { $ this -> appendCheckRow ( $ gridHeader , null , false ) ; } // Create new grid content wrapper $ gridListContentWrapper = $ this -> getFormFactory ( ) -> buildHtmlElement ( 'div' , '' , '' , 'DataTableContentWrapper' ) ; $ this -> gridList -> append ( $ gridListContentWrapper ) ; $ this -> gridList = $ gridListContentWrapper ; }
Creates headers in the dataGridList

@param array $headers An array with the header contents (can be text or DOMElement)

@throws Exception
@throws InvalidArgumentException
@throws LogicException
Creates headers in the dataGridList