meetselva / fixed-table-rows-cols

Fixed Table Header and Columns
http://meetselva.github.com/fixed-table-rows-cols/
Other
77 stars 42 forks source link

Multiple header #8

Open Sarah1111 opened 10 years ago

Sarah1111 commented 10 years ago

It doesn't support multiple header row.

meetselva commented 10 years ago

Let me check and see what I can do.

meetselva commented 10 years ago

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.

Sarah1111 commented 10 years ago

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.

meetselva commented 10 years ago

Sure, No problem. :)

Thanks for trying out the plugin.

Sarah1111 commented 10 years ago

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.

meetselva commented 10 years ago

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.

Sarah1111 commented 10 years ago

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.

cronynaval commented 10 years ago

find here a simple html table tutorial

http://www.corelangs.com/html/tables/default.html

crony

Sarah1111 commented 10 years ago

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.

casabella2012 commented 10 years ago

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();
});
Andykum commented 8 years ago

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 ?

meetselva commented 8 years ago

@Andykum The plugin does not support that. The code iterates over each TD/TH to match width/style.

Andykum commented 8 years ago

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"}}}