You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 4, 2023. It is now read-only.
Copy file name to clipboardexpand all lines: Resources/doc/columns.md
+104-3
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,8 @@
8
8
6.[Action Column](#6-action-column)
9
9
7.[Multiselect Column](#7-multiselect-column)
10
10
8.[Number Column](#8-number-column)
11
+
9.[Attribute Column](#9-number-column)
12
+
10.[Link Column](#10-link-column)
11
13
12
14
## 1. Column
13
15
@@ -40,13 +42,18 @@ With 'null' initialized options uses the default value of the DataTables plugin.
40
42
| searchable | bool | true || Enable or disable filtering on the data in this column. |
41
43
| title | null or string | null || Set the column title. |
42
44
| visible | bool | true || Enable or disable the display of this column. |
45
+
| sent_in_response | bool | true || When set to `false`, allows to access to this field in the `$row` array in Closures without sending this column to the browser (parameter `visible` set to `false` only hides the column in the rendered table). |
| add_if | null or Closure | null || Add column only if conditions are TRUE. |
45
48
| join_type | string | 'leftJoin' || Join type (default: 'leftJoin'), if the column represents an association. |
46
49
| type_of_field | null or string | null (autodetect) || Set the data type itself for ordering (example: integer instead string). |
47
50
| responsive_priority | null or int | null || Set column's visibility priority. Requires the Responsive extension. |
48
51
| filter | array | TextFilter || A Filter instance for individual filtering. |
49
52
| editable | array or null | null || An Editable instance for in-place editing. |
53
+
| mapped | bool | true || Allow to create columns not mapped in entity neither defined by DQL. |
54
+
| is_association | bool | false || Allow to force if the column is an association, usally used with `mapped` and `data_source`. |
55
+
| 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`. |
56
+
| 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. |
50
57
51
58
### Example
52
59
@@ -225,7 +232,6 @@ ___
225
232
226
233
Represents a column, optimized for date time values.
227
234
228
-
**Be sure to install the [Moment.js](https://momentjs.com/) plugin before using this column.**
229
235
**Be sure to install the [Bootstrap Date Range Picker](http://www.daterangepicker.com/) plugin before using the DateRangeFilter.**
230
236
231
237
### Options template
@@ -244,8 +250,7 @@ All options of [Column](#1-column).
return $projectPerson['isInChargeOf'] === false; // I want to display only person not in charge, this data is selected with a column with sent_in_response=False
0 commit comments