Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

Rendering a table via collection? #419

Open
tony opened this issue Sep 22, 2015 · 1 comment
Open

Rendering a table via collection? #419

tony opened this issue Sep 22, 2015 · 1 comment

Comments

@tony
Copy link

tony commented Sep 22, 2015

Some of this behavior was throwing me off. This is using Thorax 2.3.5.

Related:

  1. At https://jsfiddle.net/oko05cv7/, I'm trying to be able to render a table correctly, but a div is being added. Why would it create two layers? I'd assume the tag='tr' would be the tagName on the CollectionView.
  2. A second thing I notice is that, if you were to omit a tag in collection, the collection view contents won't render. I would expect it to work and either be a div (or inherit the tagName set in item-View, which would be tr in this example: https://jsfiddle.net/5yc8s84q/)
  3. I eventually was able to reconfigure it to work https://jsfiddle.net/zxyheohu/, is that how you'd do it? What would be the equivalent of this with a CollectionView? If this does work, are you ok if we add it as an example in the README/docs somewhere?

I looked into collection-element however the documentation / examples on that are minimal. Would a collection-element play a role in 3?

@tony
Copy link
Author

tony commented Sep 22, 2015

Edit: corrected the second point's JS fiddle URL and corrected to say the collection view content doesn't show.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant