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

Commit 4d39d8b

Browse files
Add documentation for compute_total
1 parent 7244a65 commit 4d39d8b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Datatable/Column/AbstractColumn.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ public function getTotal()
11031103
/**
11041104
* Set total.
11051105
*
1106-
* @param $total
1106+
* @param mixed $total
11071107
*
11081108
* @return $this
11091109
*/

Resources/doc/columns.md

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ With 'null' initialized options uses the default value of the DataTables plugin.
5454
| mapped | bool | true | | Allow to create columns not mapped in entity neither defined by DQL. |
5555
| is_association | bool | false | | Allow to force if the column is an association, usally used with `mapped` and `data_source`. |
5656
| 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`. |
57+
| 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. |
5758

5859
### Example
5960

@@ -761,6 +762,7 @@ public function buildDatatable(array $options = array())
761762
}
762763
```
763764

765+
764766
## 10. Link column
765767

766768
Represents a column, with a link in each cell.

0 commit comments

Comments
 (0)