Skip to content

Commit 7b217a3

Browse files
committed
wip
1 parent 52bee18 commit 7b217a3

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

7.x-dev/base-components.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ Note that you can further customize this using custom attributes. If you define
5252
Show a datatable _anywhere you want_, so the admin to easily list, filter, search and perform other operations on entries of an Eloquent model. The datatable component is a extension of a CrudController - so a CRUD for that entity needs to be already set up, and passed to this component as a parameter:
5353

5454
```html
55-
<bp-datatable controller="\App\Http\Controllers\InvoiceCrudController" />
55+
<x-datatable controller="\App\Http\Controllers\InvoiceCrudController" />
5656
```
5757

5858
The datatable will pick up everything that in your `setupListOperation()`. You can then further add/remove/configure functionality using the configuration closure:
5959

6060
```html
61-
<bp-datatable
61+
<x-datatable
6262
controller="\App\Http\Controllers\InvoiceCrudController"
6363
<!-- optional -->
6464
:setup="function($crud, $parent) { if ($parent) { $crud->addClause('where', 'customer_id', $parent->id); } }"

7.x-dev/upgrade-guide.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ No changes needed.
109109
<a name="views"></a>
110110
### Views
111111

112-
No changes needed.
112+
**List Operation View** - The List Operation view got a huge change. We decoupled the datatable from the view, so that you can use the table anywhere you would like.
113+
Most of the code is still identical but moved to `datatable.blade.php`. The `list.blade.php` view now only includes the mentioned datatable component.
114+
115+
If you had customized the `list.blade.php` you should move your customizations to `datatable.blade.php`.
113116

114117
<a name="security"></a>
115118
### Security

0 commit comments

Comments
 (0)