-
-
Notifications
You must be signed in to change notification settings - Fork 858
Closed
yajra/laravel-datatables-html
#227Description
In the laravel-datatables-vite
repository, I found an interesting ajax batch feature that is supposed to be used by creating a button like this:
Button::make('ajaxBatch')
->text('Restore')
->url(route('batch-restore-action-url'))
->confirmation('Generic confirmation message.') // Optional if you want confirmation before proceeding.
->onCancel('function(response) { alert("confirmation cancelled") }')
->onSuccess('function(response) { alert("success") }')
->onError('function(err) { alert("error") }')
Unfortunately, if I try to use it in my Datatable class, this mails with the following error:
Method Yajra\DataTables\Html\Button::url does not exist.
I cannot find any reference of any of those methods in Laravel Datatables.
Did I miss something?
Metadata
Metadata
Assignees
Labels
No labels