Skip to content

Commit 2bf505b

Browse files
authored
Fixing readme examples a litte (#592)
1 parent 7b3976a commit 2bf505b

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

README.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ ___
128128
```php
129129
class ComplexDemoTable extends LivewireDatatable
130130
{
131-
132131
public function builder()
133132
{
134133
return User::query();
@@ -243,20 +242,20 @@ You can human readable labels and translations of your groups via the `groupLabe
243242
class GroupDemoTable extends LivewireDatatable
244243
{
245244
public $groupLabels = [
246-
'group1' => 'app.translation_for_group_1'
245+
'group1' => 'app.translation_for_group_1',
247246
'group2' => 'app.translation_for_group_2'
248247
];
249248

250-
public function columns()
251-
{
252-
return [
253-
Column::name('planets.name')
254-
->group('group1')
255-
->label('Planet'),
249+
public function columns()
250+
{
251+
return [
252+
Column::name('planets.name')
253+
->group('group1')
254+
->label('Planet'),
256255

257-
Column::name('planets.name')
258-
->group('group2')
259-
->label('Planet'),
256+
Column::name('planets.name')
257+
->group('group2')
258+
->label('Planet'),
260259
```
261260

262261
### Summary row
@@ -388,7 +387,7 @@ Callbacks give you the freedom to perform any mutations you like on the data bef
388387
```php
389388
class CallbackDemoTable extends LivewireDatatable
390389
{
391-
public model = User::class
390+
public $model = User::class
392391

393392
public function columns()
394393
{
@@ -446,7 +445,7 @@ You can specify that a column's output is piped directly into a separate blade v
446445
```php
447446
class CallbackDemoTable extends LivewireDatatable
448447
{
449-
public model = User::class
448+
public $model = User::class
450449

451450
public function columns()
452451
{
@@ -473,7 +472,6 @@ This uses the ```view()``` method above to pass the data into an Alpine/Livewire
473472
```php
474473
class EditableTable extends LivewireDatatable
475474
{
476-
477475
public $model = User::class;
478476

479477
public function columns()

0 commit comments

Comments
 (0)