Skip to content

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