ember-cloaking icon indicating copy to clipboard operation
ember-cloaking copied to clipboard

tagName of the specified view is not respected

Open denzo opened this issue 12 years ago • 4 comments

I have a view which is rendered into "tr" tag thus tagName: 'tr'.

At the initial load all the views are rendered correctly (by the way, why all of them are rendered?) and then when I start scrolling they rerender into "div" tag.

Not sure if this is a bug or an incorrect implementation on my side.

denzo avatar Mar 05 '14 04:03 denzo

@denzo could you fix your formatting on this question / provide a more in depth example, I was helping another user try to implement cloaked tables and he was bumping into an issue with an extra TR, if I end up with some spare time this weekend I might take a closer peak to see what's needed to make cloaked tables a workable thing.

runspired avatar Feb 10 '15 18:02 runspired

@runspired I have fixed the formatting of the question. However, unfortunately I don't have an example as I basically rewrote the whole thing to suit my needs.

denzo avatar Feb 11 '15 01:02 denzo

@denzo thanks. P.S. not all the views are rendered anymore. Was there anything else you needed besides that and the TR->DIV conversion?

runspired avatar Feb 11 '15 02:02 runspired

@denzo just to let you know, I've updated the es6-flattened branch to easily allow cloaked tables and lists.

the tagName of the cloak-view is editable directly via

{{cloaked-collection itemTagName="li"}}

Alternatively, if the cloaked-collection's tag name is set to tbody or table then the itemTagName will automatically become a tr.

e.g.

{{cloaked-collection tagName="tbody"}}

runspired avatar Feb 21 '15 00:02 runspired