Skip to content

Commit

Permalink
Livewire column doesn't have title() method
Browse files Browse the repository at this point in the history
The Livewire column type doesn't have the `HasTitleCallback` trait, so you can't use `->title()`.

I don't know why there's an edit to the last line.  I'm just editing this file through github.com, so maybe their "diff" is confusing EOF characters.
  • Loading branch information
ChrisThompsonTLDR authored Oct 20, 2024
1 parent 9fc6ad8 commit 177e0c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/column-types/livewire_component_column.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ This is **not recommended** as due to the nature of Livewire, it becomes ineffic
## component
```
LivewireComponentColumn::make('Action')
->title(fn($row) => 'Edit')
->component('PathToLivewireComponent'),
```
Expand All @@ -29,4 +28,4 @@ Please also see the following for other available methods:
<li>
<a href="https://rappasoft.com/docs/laravel-livewire-tables/v3/columns/footer">Footer</a>
</li>
</ul>
</ul>

0 comments on commit 177e0c6

Please sign in to comment.