tabletools

I need an event fired after successful export on DataTables 1.10

Deadly 提交于 2019-12-02 16:04:17
问题 I'm using DataTables 1.10.4 and I would like to make an action, like a javascript function, after a successful Excel export. Is it possible, since the button is using Adobe Flash? 回答1: See the documentation. Below an example with Excel-button : ... "oTableTools": { "aButtons": [ { "sExtends": "xls", "fnComplete": function ( nButton, oConfig, oFlash, sFlash ) { alert( 'Excel-export complete' ); } } ] } ... 来源: https://stackoverflow.com/questions/26979826/i-need-an-event-fired-after-successful

How to conditionally display TableTools buttons

自闭症网瘾萝莉.ら 提交于 2019-12-02 11:33:37
I'm using jQuery DataTables and TableTools extension to display buttons in table header. But is there an option to show button when some condition is met? My table initialization code is shown below: projectsTable = $('#projects_table').DataTable({ "dom": '<"cleaner">lf<"cleaner">T<"cleaner"><"cleaner">rtip', "stateSave": true, "data":tableData, "bSortCellsTop": true, "responsive": true, "autoWidth": false, "tableTools":{ "aButtons": [ { "sExtends": "text", "sButtonText": "New project", "fnClick": function (mButton, oConfig, oFlash){ addProjectDialog(); } },{ "sExtends": "text", "sButtonText":

Export to Excel not working when deployed

China☆狼群 提交于 2019-12-02 10:06:48
问题 This is the code I used to create a data table with export functionality. oTable = $("#tblSearch").DataTable({ "jQueryUI": true, "sPaginationType": "full_numbers", "iDisplayLength": 10, "bSort": true, "aaSorting": [[0, "desc"]], "lengthMenu": [[5, 10, 25, 50], [5, 10, 25, 50]], "autoWidth": true, "scrollCollapse": true, "dom": 'T<"clear">lfrtip', "tableTools": { "sSwfPath": "../../swf/copy_csv_xls.swf", "aButtons": ["xls"] } }); Export is working in my local but when I deployed in server, the

DataTable TableTools Extension Implementation in Shiny

∥☆過路亽.° 提交于 2019-12-02 09:50:57
问题 I've got a dataTabe for which I'm trying to implement tableTools in order to export the records in csv format. However, when the filtered data is more than 1 page worth of records, as in the example provided here, the export button doesn't pick up the records on the 2nd page and onwards and it only exports the 1st page. From my research, it appears that oSelectorOps:{ page: 'all' } option should do the trick. However I couldn't get it to work. If you run the code below and hit the export

TableTools export in JQuery Datatables not working

让人想犯罪 __ 提交于 2019-12-02 04:43:20
问题 I've been struggling with this for two days. I've posted on the datatables forum but I've gotten no response so I'm hoping the community here can help. I've read similar posts on this issue here but I'm already using the correct path for sSwf as many posts suggest. The export buttons appear and all resources are loaded. However, Clicking the buttons has no action. There are no errors on the console. <script> $(document).ready(function() { $('#example').DataTable( { dom: 'T<"clear">lfrtip',

Adding an Email button in Shiny, using TableTools or otherwise

我们两清 提交于 2019-12-02 04:41:10
问题 The code below produces a DataTable output that I'd like to have it emailed using an Email button, similar to the Export button created below. Is there an easy way to add a button so that when you click, it pops up Microsoft Outlook to send the datatable as an attachment, say in csv format? Also, please click here and here to help with a similar questions. #Load required packages require(shiny) #Create a dataframe df <- data.frame(random=1:160) server <- function(input,output,session){

Export to Excel not working when deployed

落爺英雄遲暮 提交于 2019-12-02 04:10:11
This is the code I used to create a data table with export functionality. oTable = $("#tblSearch").DataTable({ "jQueryUI": true, "sPaginationType": "full_numbers", "iDisplayLength": 10, "bSort": true, "aaSorting": [[0, "desc"]], "lengthMenu": [[5, 10, 25, 50], [5, 10, 25, 50]], "autoWidth": true, "scrollCollapse": true, "dom": 'T<"clear">lfrtip', "tableTools": { "sSwfPath": "../../swf/copy_csv_xls.swf", "aButtons": ["xls"] } }); Export is working in my local but when I deployed in server, the button does not appear. Change the sSwfPath to an absolute path. "tableTools": { "sSwfPath": "http:/

Adding an Email button in Shiny, using TableTools or otherwise

女生的网名这么多〃 提交于 2019-12-02 02:41:31
The code below produces a DataTable output that I'd like to have it emailed using an Email button, similar to the Export button created below. Is there an easy way to add a button so that when you click, it pops up Microsoft Outlook to send the datatable as an attachment, say in csv format? Also, please click here and here to help with a similar questions. #Load required packages require(shiny) #Create a dataframe df <- data.frame(random=1:160) server <- function(input,output,session){ #Display df using DataTable and apply desired options output$display <- renderDataTable({df}, option=list

jQuery TableTools not working

谁说胖子不能爱 提交于 2019-12-01 14:21:40
I have downloaded example from TableTools. Which is working fine. what i did is i copied the content of the index.html to another file and associated every path. Flash loaded fine but except print button every control is disabled. What could be the issue. <title>TableTools example</title> <style type="text/css" title="currentStyle"> @import "http://localhost/media/css/demo_page.css"; @import "http://localhost/media/css/demo_table.css"; @import "http://localhost/TableTools/media/css/TableTools.css"; </style> <script type="text/javascript" charset="utf-8" src="http://localhost/media/js/jquery.js

jQuery TableTools not working

假装没事ソ 提交于 2019-12-01 13:09:16
问题 I have downloaded example from TableTools. Which is working fine. what i did is i copied the content of the index.html to another file and associated every path. Flash loaded fine but except print button every control is disabled. What could be the issue. <title>TableTools example</title> <style type="text/css" title="currentStyle"> @import "http://localhost/media/css/demo_page.css"; @import "http://localhost/media/css/demo_table.css"; @import "http://localhost/TableTools/media/css/TableTools