javascript - Use native node name for a Polymer custom element? -


I have a custom polymer element in which there is an array of items, they provide them in the form of a table. I have a custom Want to add element which handles the rendering of each row in the table, but the custom element is not allowed in HTML at that point where & lt; Tr & gt; will usually be added. / P>

Permission:

  & lt; Table & gt; & Lt; Tbody & gt; & Lt; TR & gt; & Lt; TD & gt; Example & lt; / TD & gt; & Lt; / TR & gt; & Lt; / Tbody & gt; & Lt; / Table & gt;   

Not allowed:

  & lt; Table & gt; & Lt; Tbody & gt; & Lt; Custom line & gt; & Lt; TR & gt; & Lt; TD & gt; Example & lt; / TD & gt; & Lt; / TR & gt; & Lt; / Custom line & gt; & Lt; / Tbody & gt; & Lt; / Table & gt;   

I have seen (like "custom-row"> ), but.

I present the whole table in a custom presentation or div s ( display: table , display: table- , display: table-cell , etc.) instead of table

As a node name for a custom element, & lt; Tr & gt; Is it possible to use ?

) and expand and lt; tr & gt; :
  lt; Table & gt; & lt; tbody & gt; & lt; tr = "custom-tr" & gt; & lt; T & gt; Example & lt; / TD & gt; & lt; / tr & gt; ; & Lt; / tbody & gt; & lt; / table & gt;   

It worked for me:

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -