Skip to content

global button does not appear  #57

@shonhor22

Description

@shonhor22

This is a bug request.

Description

Steps to Reproduce

my barilgaTable.json

"buttons": [
    "excel",
    "create",
    "edit",
    "destroy",
    {
      "type": "global",
      "icon": "trash",
      "class": "is-danger",
      "routeSuffix": "delete",
      "event": "delete",
      "postEvent": "delete-done",
      "action": "ajax",
      "method": "PATCH",
      "label": "Устгах"
    }
  ],

class BarilgaDeleteAction extends Action
{
    public function process()
    {
        \Log::info($this->data());
    }
}

class BarilgaTableController extends Controller
{
    use Datatable, Excel, Action;

    protected $tableClass = BarilgaTable::class;
    protected $actionClass = BarilgaDeleteAction::class;
    protected $chunk = 2;

}

Route::patch('delete', 'BarilgaTableController@action')
                    ->name('delete');

composer updated

Expected behavior

log filtered id

Actual behavior

button does not appear

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions