[Bug] #809
-
I have the function to show the table:
it works fine locally but the export button is not showing |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
@rawad1 there is no such thing as You should configure the action in the button wrapper as shown in the docs: 'wrapper' => [
'element' => 'a',
'href' => route('my.route.name'),
'target' => '_blank', // open in a new browser window
'title' => 'tooltip that's shown to the user',
] Please have a look at the quick button docs And also don't forget to enable access to that button with Cheers |
Beta Was this translation helpful? Give feedback.
-
I did this but it still not showing online public function setup()
|
Beta Was this translation helpful? Give feedback.
-
Hey @rawad1 we will be "fixing" this in a next version in a short time, we have the PR already created but we still need to do some changes. Laravel-Backpack/CRUD#5422 At the moment you need to add exactly like I posted to you ->meta([
// if you want to use the key `export` instead of `Export`. If you want the button to be visible all the time you can also set this to `true`
'access' => 'export',
// ... all other stuff
]) Cheers |
Beta Was this translation helpful? Give feedback.
-
Awesome, thanks for the update!
it is working now, the weird thing that it was working local without the
allowaccess
best regards,
Rawad Alzghayar
Founder
RM
…On Thu, Jan 18, 2024 at 5:39 PM Pedro Martins ***@***.***> wrote:
Hey @rawad1 <https://github.com/rawad1> we will be "fixing" this in a
next version in a short time, we have the PR already created but we still
need to do some changes. Laravel-Backpack/CRUD#5422
<Laravel-Backpack/CRUD#5422>
At the moment you need to add exactly like I posted to you
CRUD::allowAccess('Export') (notice the capital "E"). Or you can tell
your button to use export as key by defining:
->meta([
// if you want to use the key `export` instead of `Export`. If you want the button to be visible all the time you can also set this to `true`
'access' => 'export',
// ... all other stuff
])
Cheers
—
Reply to this email directly, view it on GitHub
<#809 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEH55375PRJA6IU2SSLOUILYPEQZFAVCNFSM6AAAAABCAH4M4SVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DCNRZGQZTM>
.
You are receiving this because you were mentioned.Message ID:
<Laravel-Backpack/community-forum/repo-discussions/809/comments/8169436@
github.com>
|
Beta Was this translation helpful? Give feedback.
Hey @rawad1 we will be "fixing" this in a next version in a short time, we have the PR already created but we still need to do some changes. Laravel-Backpack/CRUD#5422
At the moment you need to add exactly like I posted to you
CRUD::allowAccess('Export')
(notice the capital "E"). Or you can tell your button to useexport
as key by defining:Cheers