question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature req][3.4] Custom bulk buttons

See original GitHub issue

In the future, I foresee the need of checkboxes in the first table column and having bulk buttons at the top/bottom of the table, for bulk actions.

screen shot 2016-06-15 at 18 39 34 crude screenshot

This is the proposed syntax for that:

$this->crud->addBulkButton('name', 'url_to_send_a_post_request_with_their_ids');
$this->crud->setBulkButtonsOrder(['send_email', 'delete']);

Any better solutions?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:10
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
tabacitucommented, Aug 26, 2018

BOOM! Bulk buttons are almost here - finally been able to make this a priority 😃

If you have time, please check out this PR and let me know what you think.

Cheers!

1reaction
mamarmitecommented, Apr 6, 2018

With BP/CRUD 3.4.4, this work with the official select plugin from Datatable team.

You must indeed include the plugin with cnd (seem only possible with the download tool) so I downloaded it and include it from my structure : This is added localy : <script src="{{ asset('vendor/backpack/datatable/dataTables.select.min.js') }}"></script>

Datatable config to add in datatable_config.blade.php setting for multiselect (the column 0, will have a the icon already and will be the cell that trigger the select action. So personnaly, I used the check colum type and removed the content since the class select-checkbox add already the icon :

'columnDefs': [ {
  'orderable': false,
  'targets':   0,
  'className': 'select-checkbox',
   'targets': 0,
} ],
  'select': {
   'info': true,
   'style':    'multi',/*os for single selection*/
   'selector': 'td:first-child'
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

[Feature req][3.4] Custom bulk buttons · Issue #37 - GitHub
In the future, I foresee the need of checkboxes in the first table column and having bulk buttons at the top/bottom of the...
Read more >
Personalized Buttons With Custom Designs | Bulk Button Pins
Customize the size, type and design of your custom buttons and custom button pins for business promotions, event promotions, schools and family souvenirs....
Read more >
Create Custom Button Pins & Promotional Products
All of our premium custom buttons feature a high-gloss, weather-resistant finish, a steel pin-back and high quality, full color face print.
Read more >
Custom Buttons Bulk - Etsy
Check out our custom buttons bulk selection for the very best in unique or custom, handmade pieces from our pins & pinback buttons...
Read more >
Custom buttons | Free shipping - Sticker Mule
Create custom buttons in full color. High quality steel with durable pin-backs. Get free proofs, free worldwide shipping, 4 day turnaround & 24/7...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found