Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions html-builder-column-builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ $column = Column::make('id')
->searchable(true)
->orderable(true)
->render('\'<div class="editor-active" >\' + (full[\'deleted_at\'] == null ? \'<i class="fas fa-check-circle client-is-active"></i>Active\' : \'<i class="fas fa-times-circle"></i>Inactive\') + \'</div>\';\'\'' )
->exportRender(function($row,$data){return $data == 1 ? 'Active' : 'Inactive'})
->footer('Id')
->exportable(true)
->printable(true);
Expand Down
4 changes: 4 additions & 0 deletions html-builder-column.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<tfoot></tfoot>`.

Expand Down