diff --git a/html-builder-column-builder.md b/html-builder-column-builder.md index 1f1fd6e..ddaff77 100644 --- a/html-builder-column-builder.md +++ b/html-builder-column-builder.md @@ -31,6 +31,7 @@ $column = Column::make('id') ->searchable(true) ->orderable(true) ->render('\'
\' + (full[\'deleted_at\'] == null ? \'Active\' : \'Inactive\') + \'
\';\'\'' ) + ->exportRender(function($row,$data){return $data == 1 ? 'Active' : 'Inactive'}) ->footer('Id') ->exportable(true) ->printable(true); diff --git a/html-builder-column.md b/html-builder-column.md index ab21bf4..f0a2b03 100644 --- a/html-builder-column.md +++ b/html-builder-column.md @@ -47,6 +47,10 @@ Orderable attribute will toggle the `ordering` ability for the defined column. D ### Render (Optional) Render attribute is a `js` script string that you can use to modify the way the column is being rendered via `javascript`. +### Export Render (Optional) +Export Render attribute is a `php callback function` that you can use to modify the way the column is being rendered via `print` or `export (CSV/Excel/PDF)`. + + ### Footer (Optional) Footer attribute will be as your `tables` column's `footer` content ``.