Okipa / laravel-table

Generate tables from Eloquent models.
MIT License
532 stars 64 forks source link

Custom Actions #70

Closed JeffreyDavidson closed 3 years ago

JeffreyDavidson commented 3 years ago

I'm trying to understand how to create a custom button that will send a patch request action to a specific route. Is this possible with this package?

Okipa commented 3 years ago

Hi @JeffreyDavidson, I'm afraid you can't do this right now.

I never had to implement this because I always add custom actions (buttons, links, ...) in table cells with ->html() column rendering.

I would accept a tested PR for an implementation that would allow to add a custom actions.