CRUD: [BUG] No export buttons on version 3.5

Bug report

I believe export buttons feature was forgotten with this update, as far as I understood, the div id='datatable_button_stack' is not in the list.blade.php.

What I did:

Added the export function $this->crud->enableExportButtons();.

What I’ve already tried to fix it:

I added the div next to the search stack div in the list.blade.php file, and it started to work.

<div class="col-xs-6">
    <div id="datatable_button_stack" class="pull-right"></div>
    <div id="datatable_search_stack" class="pull-right"></div>
</div>

This causes a kind of design flaw, because the buttons there are not very beautiful 😃 image

Backpack, Laravel, PHP, DB version:

CRUD 3.5

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 31 (24 by maintainers)

Commits related to this issue

Most upvoted comments

PS. This last commit also makes the export button NOT blink when the page is loaded, or be shown bigger then smaller, because they’re shown with JS. Also it centers them in the middle column, which I believe is better. I recommend you get this new CSS even if you’ve applied other fixes here.

php artisan view:clear Fixed the problem. I’m new to laravel/backpack, I didn’t know about this command. Normally, I just clear the cache and tought that was enough. Thanks for the help!

$this->crud->enableExportButtons(); does not show the export buttons at the moment.

@howest-ward аfter updating please do third command:

composer update
php artisan vendor:publish --provider="Backpack\CRUD\CrudServiceProvider" --tag=public --force
php artisan view:clear