Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

- add colSpan prop to Td objects #135

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

- add colSpan prop to Td objects #135

wants to merge 3 commits into from

Conversation

paulcameron
Copy link

  • colSpan prop for Td objects
  • assumes that null data for remaining cols should not be rendered

@glittershark
Copy link
Owner

(#84)

@glittershark
Copy link
Owner

How does this work with filtering and sorting? I'd like to see some test cases inside your block that cover those

@glittershark
Copy link
Owner

Besides that caveat this is very nice.

@paulcameron
Copy link
Author

i'm planning on working on a separate PR that addresses sorting. i want to add the ability to specify XX number of rows that get pinned to the bottom of the table.

but yes, sorting "works" however the results can be oddly defined if you are sorting on a col that has no corresponding Td.

i'll look at how it deals with filtering. this is n't part of our use case, but i'll make sure that it isn't too janky

@glittershark
Copy link
Owner

👍 sounds good. I'm totally fine with accepting a partial PR.

@paulcameron
Copy link
Author

  • hold off for a bit, i have noticed some weird stuff with the sorting
  • i'll figure it out and update

@paulcameron
Copy link
Author

ok, that fixes the sorting issues.

@paulcameron
Copy link
Author

@glittershark all good when you get a chance

@paulcameron
Copy link
Author

@glittershark ?

@glittershark
Copy link
Owner

@paulcameron day job has been demanding more and more of my attention lately 😄 should be able to take a look at this over the weekend.

@paulcameron
Copy link
Author

That's great. I was just making sure you saw my update.

On Wednesday, April 29, 2015, Griffin Smith [email protected]
wrote:

@paulcameron https://github.com/paulcameron day job has been demanding
more and more of my attention lately [image: 😄] should be able to
take a look at this over the weekend.


Reply to this email directly or view it on GitHub
#135 (comment)
.

@@ -311,9 +313,21 @@
value = value.value;
}

if(typeof(props.colSpan) !== 'undefined') {
colSpanDebt += props.colSpan - 1;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we fail with a warning if a user specifies a colSpan of less than 1 here?

@glittershark
Copy link
Owner

@paulcameron do you have the time to rebase this? If not I'll see if I can stumble my way through it

@sthadeshwar
Copy link

Any updates on this PR?

@parthms
Copy link

parthms commented Aug 12, 2016

So what's the status on adding colspan?

@paulcameron
Copy link
Author

@parthms @sthadeshwar i have moved on to other things. you guys can feel free to pick it up from here.

@cklab cklab mentioned this pull request Feb 9, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants