Skip to content

Rendering Rows from Separate Component Supported (kind of)

Compare
Choose a tag to compare
@maxhudson maxhudson released this 09 Apr 14:48
· 101 commits to master since this release
c6d2a8c

While we don't recommend doing this, you can create a separate component that manages the rendering of each row. It should work fine if all you're doing is implementing a .render() method.

Subclassing <Cell> shouldn't cause any problems, but rendering <Row> elements from another component could behave unexpectedly because <StickyTable> is breaking the <Row>s up into groups of <Cell>s (there are four: corner, header, column, and body) and putting them back into new <Row> components. Each of these groups gets its own <div> with display: table and then they're all synced up.