Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include functionality to add table buttons #47

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

happymacarts
Copy link
Contributor

Adds ability for users to include table buttons on the model Fixes #46
more info about buttons options can be found here https://datatables.net/reference/button/

Add double click event
add buttons parameter to config object to allow Table "buttons" to be specified on model
added documentation for Buttons on Table model
@wimurk wimurk self-assigned this Jul 19, 2022
@wimurk wimurk added enhancement New feature or request invalid This doesn't seem right labels Jul 19, 2022
@wimurk
Copy link
Contributor

wimurk commented Jul 19, 2022

When you add the buttons, you can't use the translator. Moving it to a method would be better.

public function buttons() : array
{
    return [];
}

@happymacarts
Copy link
Contributor Author

I have been trying to get this to work but am missing something (I am sure simple)

@wimurk
Copy link
Contributor

wimurk commented Aug 31, 2022

@happymacarts you can add new methods in the abstract class Field in the SingleQuote\DataTables\Controllers location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unable to get colvis button to function using $.fn.dataTable.defaults
2 participants