tabletools

How to use a link in TableTools instead of flash buttons

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 00:48:56
问题 I'm trying to find a way to change the buttons on TableTools. I'd like to use my own customized links instead of the flash buttons. Is there a way I can do that? Any good resource teaching me how to make that modification and still able to use the functionalities, like button collection, etc. 回答1: According to the creator, the only way to get the TableTools export functionality is by using the Flash buttons. The other threads that you found should say that currently, no, this is not an option

Datatables TableTools multiple tables on the same page

 ̄綄美尐妖づ 提交于 2019-12-05 06:25:16
I am having problems with multiple instances of DataTables and TableTools on the same page. The DataTables are working fine, but when using TableTools only the first table is working fully with the buttons. All buttons are appearing fine on all tables but when you click a button it does nothing. (apart from 'Print' button works on all 4 tables). Does anybody have any ideas why this is happening? I have been searching for a solution but not found any. <script type="text/javascript"> jQuery( function( $ ) { // Implements the dataTables plugin on the HTML table var $acTable= $("#academic_table")

Export value with Linebreaks into single cell in Excel. jQuery Datatables

烂漫一生 提交于 2019-12-05 03:45:19
I am successfully exporting HTML tables from a web application to excel using jQuery DataTables. However one particular column has values containg line breaks and tabs. I have managed to display the data correctly on the HTML table by replacing new lines (\n) and tabs (\t) with <br> and  (x5) respectively. The issue is when exporting to excel i need to have the line breaks back in but keep all the value in one cell. here is my jquery code: $('#papercliptable').dataTable({ "sDom": 'T<"clear">lfrtip', "tableTools": { "aButtons": [{ "sExtends": "xls", "sButtonText": "Excel", "fnCellRender":

How to replace button with icon in table tools in data table?

大兔子大兔子 提交于 2019-12-04 17:22:13
I have a download button and when the download button is clicked the options will be displayed. But I have to replace this with hamburger icon. How can I achieve that When I click the hamburger icon, the options should be displayed : The download button must be changed to hamburger icon When I click the button, the options must be displayed Is there any way to achieve this ? This is my datatable code: $(document).ready(function () { $('#ItemTable').DataTable({ responsive: true, scrollX: true, lengthMenu: [10, 20, 50, 200, 400, 500, 1000], dom: 'T<"clear">lfrtip', "tableTools": { "sSwfPath": "

TableTools export not working in DataTables on multiple JQuery tabs

梦想的初衷 提交于 2019-12-04 14:53:07
I am using DataTables-1.8.2, TableTools-2.0.1 and JQuery-1.6.4 to display a table on each of three jQuery tabs. TableTools provides the Copy/Excel/PDF/Print export features for the table and it works great on the first table on the first tab only. On the other two tabs, the buttons are displayed, but none of them do anything except the Print button (this is because the Print button does not use the same Flash-based method). Paths should not be an issue (I know the .swf path is a common problem) because the configuration of the one that works was just copied for the others. This is running on a

Jquery - DataTables [tableTools]: export only visible rows

ε祈祈猫儿з 提交于 2019-12-04 11:00:38
问题 I just started out using jQuery DataTables. using the tableTools of DataTables, is it possible to only export visible rows instead of all the rows? If for example the pagination was set to 10 I would expect only 10 rows to be exported. The same goes for a search result. Here's part of the code: $(document).ready(function() { var table = $('#example').DataTable({ "pagingType": "full_numbers", "iDisplayLength" : 10, dom: 'T<"clear">lfrtip', "oTableTools": { "aButtons": [ { "sExtends": "copy",

how to disable a DataTables/TableTools button

十年热恋 提交于 2019-12-04 07:27:41
I'm using DataTable 1.10 and TableTools 2.2.1. Given the following snipped I would like to disable/enable the edit-button. var myTable = $("#myTable ").DataTable({ tableTools : { "aButtons" : [ { "sExtends" : "text", "sButtonText" : "Edit", "fnClick" : function(nButton, oConfig, oFlash) { /* some stuff */ } }] } }) Is there a possibility to do this at runtime? Thanks a lot This was a good question! Seems that the fnClick in dataTable.tabletools().fnSettings().buttonSet[id].fnClick only is a reference to the event stored elsewhere, not accessible (changing fnClick on the API has no effect).

How to use a link in TableTools instead of flash buttons

我的梦境 提交于 2019-12-04 06:43:18
I'm trying to find a way to change the buttons on TableTools. I'd like to use my own customized links instead of the flash buttons. Is there a way I can do that? Any good resource teaching me how to make that modification and still able to use the functionalities, like button collection, etc. According to the creator , the only way to get the TableTools export functionality is by using the Flash buttons. The other threads that you found should say that currently, no, this is not an option that TableTools provides. The Flash option is used to provide cross browser / platform ability to save

Use TableTools for DataTables in R Shiny for renderDataTable

℡╲_俬逩灬. 提交于 2019-12-03 13:12:04
问题 For this question, I am using the R Shiny tutorial example found here: http://rstudio.github.io/shiny/tutorial/#datatables Running the code on this tutorial renders the application at the following URL http://glimmer.rstudio.com/yihui/12_datatables/ What I would like to know is, once that data table is rendered, we can search it using the functionality built into the renderDataTable() function in R Shiny, but is it possible to download the data you have filtered to using the renderDataTable()

Use TableTools for DataTables in R Shiny for renderDataTable

拈花ヽ惹草 提交于 2019-12-03 04:08:31
For this question, I am using the R Shiny tutorial example found here: http://rstudio.github.io/shiny/tutorial/#datatables Running the code on this tutorial renders the application at the following URL http://glimmer.rstudio.com/yihui/12_datatables/ What I would like to know is, once that data table is rendered, we can search it using the functionality built into the renderDataTable() function in R Shiny, but is it possible to download the data you have filtered to using the renderDataTable() function? For instance, if in the data table search bar I type, "Very Good," only the records in the