Skip to content
Discussion options

You must be logged in to vote

Hey @amigolj

Sorry for the inconvenience. Docs need a minor fix there. It is missing an access attribute, which tells if the user has permission to access it or not.

CRUD::button('type')->stack('line')->view('crud::buttons.quick')->meta(
    [
+        'access' => true, // or 'access' => 'operation_name', ex: list, update
        'label' => 'Email',
        'icon' => 'la la-envelope',
        'wrapper' => [
            'href' => function ($entry, $crud) {
                return backpack_url("invoice/email");
            },
            'ajax' => true, // <- just add `ajax` and it's ready to make ajax request
        ]
    ]
);

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@amigolj
Comment options

Answer selected by amigolj
Comment options

You must be logged in to vote
2 replies
@karandatwani92
Comment options

@amigolj
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
2 participants