I am trying to use the stack only mode for a responsive web design. I tried using the following code, everything seems to work fine but while stacking the table, the headers disppear(they dont even show up in the console).
My table html is as follows:
Congregation Name
Street Address
City
State
ZIP Code
Remove
My js uses Ajax to populate and append rows to the table. The table looks fine in the regular browser. But after getting stacked, the headers disppear. Here below I attached an image.
I tried everything - all the below methods(But everything seems to be in vain)
$( "#items-index-table" ).table( "refresh" );
$( "#items-index-table" ).table( );
i can confirm this issue. When I include tablesaw-jquery.js, I also do not see any headers in stack mode. the error in console reads 'shoestring is undefined' from tablesaw-init.js. Using tablesaw.js worked fine though.
Further to this, when changing ( shoestring || jQuery ) to ( jQuery || shoestring ) on the last line of tablesaw-init.js, the script gives no errors and functions as expected.
I am trying to use the stack only mode for a responsive web design. I tried using the following code, everything seems to work fine but while stacking the table, the headers disppear(they dont even show up in the console).
My table html is as follows:
My js uses Ajax to populate and append rows to the table. The table looks fine in the regular browser. But after getting stacked, the headers disppear. Here below I attached an image.
$('#tblAddRemoveTop tbody').empty(); $.each(congregationStatus, function(i) { var addressLine;
if(congregationStatus[i]['addressLine2']) addressLine = congregationStatus[i]['addressLine1']+"
"+congregationStatus[i]['addressLine2'] ; else addressLine = congregationStatus[i]['addressLine1'];
var populateData ="
"
$('#tblAddRemoveTop tbody').append(populateData); $('#tblAddRemoveTop').table().data("table").refresh();
I tried everything - all the below methods(But everything seems to be in vain) $( "#items-index-table" ).table( "refresh" ); $( "#items-index-table" ).table( );
i can confirm this issue. When I include tablesaw-jquery.js, I also do not see any headers in stack mode. the error in console reads 'shoestring is undefined' from tablesaw-init.js. Using tablesaw.js worked fine though.
Further to this, when changing
( shoestring || jQuery )
to( jQuery || shoestring )
on the last line oftablesaw-init.js
, the script gives no errors and functions as expected.hi geeks .. i have the same issue when i use this in my app. please help me to solve this issue . i can't understand how to solve this.
Hi All,
I also happen this issue, missing label on mobile view, when I fetch data from ajax. It is working properly with static
I fixed by $('.tablesaw').tablesaw().data("tablesaw").refresh(); after complete loaded