Closed t2ym closed 5 years ago
[demo] <shadow-repeat> element to avoid disconnection on selective drawing
<shadow-repeat>
html`${bind(this)} <shadow-repeat .repeater=${() => repeat(this.items, (item, index) => html`<slot name=${index}>`)}> <!-- stock views in Light DOM and show selected in shadow DOM via slot names --> ${repeat(this.items, (item, index) => index, (item, index) => html`<item-element slot=${index} .data=${item}></item-element>`)} </shadow-repeat>`;
[demo]
<shadow-repeat>
element to avoid disconnection on selective drawingUsage