Open Sarah1111 opened 10 years ago
Let me check and see what I can do.
Could you try downloading the below script and let me know how it works for you?
https://github.com/meetselva/fixed-table-rows-cols/blob/gh-pages/js/fixed_table_rc_multiheader.js
I just adjusted existing script to support multi-header. Let me know if it works for you.
Thank you so much, will test it and let you know. You are the best!
Sent from my iPad
On Mar 29, 2014, at 7:02 PM, Selvakumar Arumugam notifications@github.com wrote:
Could you try downloading the below script and let me know how it works for you?
https://github.com/meetselva/fixed-table-rows-cols/blob/gh-pages/js/fixed_table_rc_multiheader.js
I just adjusted existing script to support multi-header. Let me know if it works for you.
— Reply to this email directly or view it on GitHub.
Sure, No problem. :)
Thanks for trying out the plugin.
I tried in my local, it doesn't really work. The attached is the test file, css and your latest javascript.
You can try it out yourself. I might missing something here. On Saturday, March 29, 2014 9:46 PM, Selvakumar Arumugam notifications@github.com wrote:
Sure, No problem. :) Thanks for trying out the plugin. — Reply to this email directly or view it on GitHub.
I did not receive any attachment.. Could you try posting your test file in http://jsfiddle.net/ ?
Let me know if you haven't used jsfiddle before.
I haven't, will try to send you the html file and css file in zip file. Since you already have the js file. On Monday, March 31, 2014 10:06 AM, Selvakumar Arumugam notifications@github.com wrote:
I did not receive any attachment.. Could you try posting your test file in http://jsfiddle.net/ ? Let me know if you haven't used jsfiddle before. — Reply to this email directly or view it on GitHub.
You actually can test yourself. Just copy the first header row and paste it as second. You will see.
Sent from my iPhone
On Apr 11, 2014, at 2:33 AM, cronynaval notifications@github.com wrote:
find here a simple html table tutorial
http://www.corelangs.com/html/tables/default.html
crony
— Reply to this email directly or view it on GitHub.
It's mostly working accept for the part to prepare rows/cols for fixed row col section. Currently it is
//prepare rows/cols for fixed row col section
var tdct = 0;
$('tr', theadTrClone).first().find('th').filter( function () {
tdct += this.colSpan;
return tdct > r1c1ColSpan;
}).remove();
It seems to be working if the above is placed inside a loop for each row:-
//prepare rows/cols for fixed row col section
$('tr', theadTrClone).each(function(i, el) {
var tdct = 0;
$(el).find('th').filter( function () {
tdct += this.colSpan;
return tdct > r1c1ColSpan;
}).remove();
});
I am trying to create a table with 2 fixed headers. The column widths in the top row are different to the lower ( 2nd header) row. Does the plugin support that ?
@Andykum The plugin does not support that. The code iterates over each TD/TH to match width/style.
Thank you.
----Original message----
From : notifications@github.com
Date : 04/08/2016 - 16:12 (BST)
To : fixed-table-rows-cols@noreply.github.com
Cc : andykumaria@btinternet.com, mention@noreply.github.com
Subject : Re: [meetselva/fixed-table-rows-cols] Multiple header (#8)
@Andykum The plugin does not support that. The code iterates over each TD/TH to match width/style.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/meetselva/fixed-table-rows-cols","title":"meetselva/fixed-table-rows-cols","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/modules/aws/aws-bg.jpg","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/meetselva/fixed-table-rows-cols"}},"updates":{"snippets":[{"icon":"PERSON","message":"@meetselva in #8: @Andykum The plugin does not support that. The code iterates over each TD/TH to match width/style. "}],"action":{"name":"View Issue","url":"https://github.com/meetselva/fixed-table-rows-cols/issues/8#issuecomment-237583946"}}}
It doesn't support multiple header row.