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
Post a Comment