Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
Add documentation for compute_total
Browse files Browse the repository at this point in the history
  • Loading branch information
philippemilink committed Sep 7, 2019
1 parent 7244a65 commit 4d39d8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Datatable/Column/AbstractColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ public function getTotal()
/**
* Set total.
*
* @param $total
* @param mixed $total
*
* @return $this
*/
Expand Down
2 changes: 2 additions & 0 deletions Resources/doc/columns.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ With 'null' initialized options uses the default value of the DataTables plugin.
| mapped | bool | true | | Allow to create columns not mapped in entity neither defined by DQL. |
| is_association | bool | false | | Allow to force if the column is an association, usally used with `mapped` and `data_source`. |
| data_source | null or string | null | | Specify the column source of the data to manipulate in the current column. Usally used with `mapped` and `data_source`. |
| compute_total | bool | false | | Compute the total of numbers of all the row selected by the query. Totals will be displayed on a header row. |

### Example

Expand Down Expand Up @@ -761,6 +762,7 @@ public function buildDatatable(array $options = array())
}
```


## 10. Link column

Represents a column, with a link in each cell.
Expand Down

0 comments on commit 4d39d8b

Please sign in to comment.