OpenSkill\Datatable\Views\DatatableView::headers PHP Method

headers() public method

Indicates that the current columns should have a header on the table
public headers ( )
    public function headers()
    {
        $this->printHeaders = true;
        return $this;
    }

Usage Example

Ejemplo n.º 1
0
 public function testHeaders()
 {
     $this->viewFactory->shouldReceive('make')->withArgs(['fooTable', ['columns' => ['id' => 'id'], 'showHeaders' => true, 'id' => 'fooBar', 'endpoint' => '/']])->times(1)->andReturn($this->view);
     $this->dtv2->headers();
     $this->dtv2->table();
 }