File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ The package will auto-detect numeric fields and can be used with custom formats.
108
108
``` php
109
109
Column::make('total')->exportFormat('0.00'),
110
110
Column::make('count')->exportFormat('#,##0'),
111
- Column::make('average')->exportFormat('#,##0.00),
111
+ Column::make('average')->exportFormat('#,##0.00' ),
112
112
```
113
113
114
114
## Date Fields Formatting
@@ -152,6 +152,16 @@ Valid date formats can be adjusted on `datatables-export.php` config file.
152
152
]
153
153
```
154
154
155
+ ## Force Numeric Field As Text Format
156
+
157
+ Option to force auto-detected numeric value as text format.
158
+
159
+ ``` php
160
+ Column::make('id')->exportFormat('@'),
161
+ Column::make('id')->exportFormat(NumberFormat::FORMAT_GENERAL),
162
+ Column::make('id')->exportFormat(NumberFormat::FORMAT_TEXT),
163
+ ```
164
+
155
165
## Contributing
156
166
157
167
Please see [ CONTRIBUTING] ( https://github.com/yajra/laravel-datatables-export/blob/master/.github/CONTRIBUTING.md ) for details.
You can’t perform that action at this time.
0 commit comments