web: lazy-render expanded table

This commit is contained in:
Jens Langhammer 2020-12-28 13:07:20 +01:00
parent 0e1587bc1a
commit 5db38bd0b7

View file

@ -178,7 +178,7 @@ export abstract class Table<T> extends LitElement {
</tr> </tr>
<tr class="pf-c-table__expandable-row ${this.expandedRows[idx] ? "pf-m-expanded" : ""}" role="row"> <tr class="pf-c-table__expandable-row ${this.expandedRows[idx] ? "pf-m-expanded" : ""}" role="row">
<td></td> <td></td>
${this.renderExpanded(item)} ${this.expandedRows[idx] ? this.renderExpanded(item) : html``}
</tr> </tr>
</tbody>`; </tbody>`;
}); });