|
6 | 6 | [](https://packagist.org/packages/yajra/laravel-datatables-export)
|
7 | 7 | [](https://packagist.org/packages/yajra/laravel-datatables-export)
|
8 | 8 |
|
9 |
| -This package is a plugin of [Laravel DataTables](https://github.com/yajra/laravel-datatables) for handling server-side exporting using Queue, Laravel Excel and Livewire. |
| 9 | +This package is a plugin of [Laravel DataTables](https://github.com/yajra/laravel-datatables) for handling server-side exporting using Queue, Spout and Livewire. |
10 | 10 |
|
11 | 11 | ## Requirements
|
12 | 12 |
|
13 | 13 | - [PHP >=7.4](http://php.net/)
|
14 | 14 | - [Laravel 8.x](https://github.com/laravel/framework)
|
15 | 15 | - [Laravel Livewire](https://laravel-livewire.com/)
|
| 16 | +- [Spout](https://github.com/box/spout) |
16 | 17 | - [Laravel DataTables 9.x](https://github.com/yajra/laravel-datatables)
|
17 | 18 | - [jQuery DataTables v1.10.x](http://datatables.net/)
|
18 | 19 |
|
@@ -96,6 +97,16 @@ Column::make('mobile')->exportFormat('00000000000'),
|
96 | 97 |
|
97 | 98 | The format above will treat mobile numbers as text with leading zeroes.
|
98 | 99 |
|
| 100 | +## Numeric Fields Formatting |
| 101 | + |
| 102 | +The package will auto-detect numeric fields and can be used with custom formats. |
| 103 | + |
| 104 | +```phpt |
| 105 | +Column::make('total')->exportFormat('0.00'), |
| 106 | +Column::make('count')->exportFormat('#,##0'), |
| 107 | +Column::make('average')->exportFormat('#,##0.00), |
| 108 | +``` |
| 109 | + |
99 | 110 | ## Date Fields Formatting
|
100 | 111 |
|
101 | 112 | The package will auto-detect date fields when used with a valid format or is a DateTime instance.
|
|
0 commit comments