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.
108108``` php
109109Column::make('total')->exportFormat('0.00'),
110110Column::make('count')->exportFormat('#,##0'),
111- Column::make('average')->exportFormat('#,##0.00),
111+ Column::make('average')->exportFormat('#,##0.00' ),
112112```
113113
114114## Date Fields Formatting
@@ -152,6 +152,16 @@ Valid date formats can be adjusted on `datatables-export.php` config file.
152152 ]
153153```
154154
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+
155165## Contributing
156166
157167Please 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