Replies: 3 comments 1 reply
-
What do you mean? If you want to re-use that code, then you could just create a class that extends LinkColumn, with all of that setup by default. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I need button to show modal.
Now I use:
->buttons([ LinkColumn::make('View') ->title(fn($row) => 'View ' . $row->name) ->location(fn($row) => '#') ->attributes(function($row) { return [ 'class' => 'btn btn-primary btn-sm', 'wire:click.prevent' => 'viewDetailModal('.$row->id.')' ]; }), ])
but I don't want use every time class to define button view, but I want use predefined component
How can I use it in my situation?
BR
Beta Was this translation helpful? Give feedback.
All reactions