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
Copy file name to clipboardexpand all lines: Resources/doc/builders/excel-builder.md
+6-1
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,15 @@
10
10
To use the Excel export make sure you have installed the recommended dependency `liuggio/excelbundle` (version `>= 2.0`) and enabled it in your AppKernel.php (`new Liuggio\ExcelBundle\LiuggioExcelBundle()`). Without this bundle enabled the ExcelAction will not work.
11
11
12
12
### 1. Usage
13
-
The Excel builder provides an Excel export of the list view. The export uses the data that is visible on the screen (and the next pages) and thus uses the filters and scopes selected.
13
+
The Excel builder provides an Excel export of the list view. The export uses the data that is visible on the screen (and the next pages) and thus uses the filters and scopes selected. You can use object associations by just entering a dot.
14
14
15
15
### 2. Options
16
16
17
17
*`display`: The same as in list/new/show/edit, selects the columns to export
18
18
*`filename`: Specify the export filename. When null 'admin_export_{list title}' is used
19
19
*`filetype`: Default Excel2007. See the [excelbundle documention](https://github.com/liuggio/excelbundle#not-only-excel5) for the possible options.
20
+
*`datetime_format`: Specify the DateTime format to be used in the Excel export. Default is `Y-m-d H:i:s`.
21
+
22
+
### 3. Header titles in Excel
23
+
24
+
The header titles are fully customizable just as every other block. Just use the `fields` key directly under the builder. This even works for associated fields like `person.fullname`.
0 commit comments