Skip to content

Commit fcf6f1f

Browse files
committed
Update readme
1 parent 687c1bd commit fcf6f1f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ The package will auto-detect numeric fields and can be used with custom formats.
108108
```php
109109
Column::make('total')->exportFormat('0.00'),
110110
Column::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

157167
Please see [CONTRIBUTING](https://github.com/yajra/laravel-datatables-export/blob/master/.github/CONTRIBUTING.md) for details.

0 commit comments

Comments
 (0)