Skip to content

Include functionality to add table buttons - #47

Open
happymacarts wants to merge 7 commits into
singlequote:masterfrom
happymacarts:master
Open

Include functionality to add table buttons#47
happymacarts wants to merge 7 commits into
singlequote:masterfrom
happymacarts:master

Conversation

@happymacarts

Copy link
Copy Markdown
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

wimurk commented Jul 19, 2022

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

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

@wimurk

wimurk commented Aug 31, 2022

Copy link
Copy Markdown
Contributor

@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