protected function setColumns()
    {
        // choose what columns should be displayed in the table.
        // For table display, we need to specify the column name for the result query.

        $this->addCheckableColumn();

        $this->columns['id'] = array(
            'label'         => 'ID',
            'sortable'      => true,
            'table_column'  => 'users.id',
        );

        $this->columns['username'] = array(
            'label'     => 'Username',
            'sortable'  => true,
            'table_column'  => 'users.username',
        );

        $this->columns['email'] = array(
            'label'         => 'Email',
            'sortable'      => true,
            'classes'       => 'some_class some_class2',
            'table_column'  => 'users.email',
            'thead_attr'    => 'style="width:200px" data-some-attr="example"',
        );

        $this->columns['created_at'] = array(
            'label'         => 'Created At',
            'sortable'      => true,
            'table_column'  => 'users.created_at',
        );

        $this->addActionColumn();

    }
protected function setColumns()
    {
        // choose what columns should be displayed in the table.
        // For table display, we need to specify the column name for the result query.

        $this->addCheckableColumn();

        $this->columns['id'] = array(
            'label'         => 'ID',
            'sortable'      => true,
            'table_column'  => 'users.id',
        );

        $this->columns['username'] = array(
            'label'     => 'Username',
            'sortable'  => true,
            'table_column'  => 'users.username',
        );

        $this->columns['email'] = array(
            'label'         => 'Email',
            'sortable'      => true,
            'classes'       => 'some_class some_class2',
            'table_column'  => 'users.email',
            'thead_attr'    => 'style="width:200px" data-some-attr="example"',
        );

        $this->columns['created_at'] = array(
            'label'         => 'Created At',
            'sortable'      => true,
            'table_column'  => 'users.created_at',
        );

        $this->addActionColumn();

    }
protected function setColumns ( ) { // choose what columns should be displayed in the table. // For table display, we need to specify the column name for the result query. $ this -> addCheckableColumn ( ) ; $ this -> columns [ 'id' ] = array ( 'label' => 'ID' , 'sortable' => true , 'table_column' => 'users.id' , ) ; $ this -> columns [ 'username' ] = array ( 'label' => 'Username' , 'sortable' => true , 'table_column' => 'users.username' , ) ; $ this -> columns [ 'email' ] = array ( 'label' => 'Email' , 'sortable' => true , 'classes' => 'some_class some_class2' , 'table_column' => 'users.email' , 'thead_attr' => 'style="width:200px" data-some-attr="example"' , ) ; $ this -> columns [ 'created_at' ] = array ( 'label' => 'Created At' , 'sortable' => true , 'table_column' => 'users.created_at' , ) ; $ this -> addActionColumn ( ) ; }
Set columns to display

return void
Set columns to display