Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing readme examples a litte #592

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
26 changes: 12 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ ___
```php
class ComplexDemoTable extends LivewireDatatable
{

public function builder()
{
return User::query();
Expand Down Expand Up @@ -245,20 +244,20 @@ You can human readable labels and translations of your groups via the `groupLabe
class GroupDemoTable extends LivewireDatatable
{
public $groupLabels = [
'group1' => 'app.translation_for_group_1'
'group1' => 'app.translation_for_group_1',
'group2' => 'app.translation_for_group_2'
];

public function columns()
{
return [
Column::name('planets.name')
->group('group1')
->label('Planet'),
public function columns()
{
return [
Column::name('planets.name')
->group('group1')
->label('Planet'),

Column::name('planets.name')
->group('group2')
->label('Planet'),
Column::name('planets.name')
->group('group2')
->label('Planet'),
```

### Summary row
Expand Down Expand Up @@ -390,7 +389,7 @@ Callbacks give you the freedom to perform any mutations you like on the data bef
```php
class CallbackDemoTable extends LivewireDatatable
{
public model = User::class
public $model = User::class

public function columns()
{
Expand Down Expand Up @@ -448,7 +447,7 @@ You can specify that a column's output is piped directly into a separate blade v
```php
class CallbackDemoTable extends LivewireDatatable
{
public model = User::class
public $model = User::class

public function columns()
{
Expand All @@ -475,7 +474,6 @@ This uses the ```view()``` method above to pass the data into an Alpine/Livewire
```php
class EditableTable extends LivewireDatatable
{

public $model = User::class;

public function columns()
Expand Down