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.

DTOptionsBuilder.withButtons() not working, it doesn't shows the button.

See original GitHub issue

I’m using the v0.5.1 datatables. I already included in my index.html

<script src="/app/bower_components/datatables/media/js/jquery.dataTables.min.js"></script> <script src="/app/bower_components/angular-datatables/dist/angular-datatables.min.js"></script> <script src="/app/bower_components/angular-datatables/dist/plugins/bootstrap/angular-datatables.bootstrap.min.js"></script> <script src="/app/bower_components/angular-datatables/dist/plugins/buttons/angular-datatables.buttons.js"></script> <script src="/app/bower_components/angular-datatables/dist/plugins/buttons/angular-datatables.buttons.min.js"></script>

and added the modules 'datatables', 'datatables.bootstrap', 'datatables.buttons' in my app.

Based from example of this link angular-datatables/#/withButtons I didn’t get this file vendor/datatables-buttons/js/dataTables.buttons.js after I updated my bower.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
Hesessescommented, Oct 18, 2016

The problem was that I needed bower install datatables.net-buttons-bs and this was written nowhere

1reaction
l-lincommented, Oct 17, 2016

Did you add the JS files?

<script src="https://cdn.datatables.net/buttons/1.2.2/js/dataTables.buttons.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.2.2/js/buttons.colVis.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.2.2/js/buttons.flash.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.2.2/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.2.2/js/buttons.print.min.js"></script>
<script src="vendor/angular-datatables/dist/plugins/buttons/angular-datatables.buttons.min.js"></script>
Read more comments on GitHub >

github_iconTop Results From Across the Web

DTOptionsBuilder.withButtons() not working, it doesn't shows ...
I'm using the v0.5.1 datatables. I already included in my index.html. <script src="/app/bower_components/datatables/media/js/jquery.
Read more >
Split button not working at all — DataTables forums
As shown I get the 'High priority' button and it's function fires when clicked but there is no down arrow to show the...
Read more >
Angular-Datatable Buttons will not render - Stack Overflow
I think you are missing some files which the Angular DataTables documentation doesn't specify. The files you are missing are in this package....
Read more >
Untitled
First you need to create a <th> for showing the button column. import ... I have the following code: Datatable with Angular, Adding...
Read more >
DataTables Extensions
Scroller does not work with column selection (#283). The Excel button in the Buttons extension may not appear in Safari (#343);. # this...
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