1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-02-15 07:25:54 +00:00

Save and restore collapsed groups (#20591)

This commit is contained in:
Bram Kragten
2024-04-23 21:00:17 +02:00
committed by GitHub
parent 7e25366897
commit 81922f5a3e
3 changed files with 25 additions and 1 deletions

View File

@@ -55,6 +55,8 @@ export class HaTabsSubpageDataTable extends LitElement {
@property({ type: Boolean, attribute: "main-page" }) public mainPage = false;
@property({ attribute: false }) public initialCollapsedGroups: string[] = [];
/**
* Object with the columns.
* @type {Object}
@@ -425,6 +427,7 @@ export class HaTabsSubpageDataTable extends LitElement {
.sortDirection=${this._sortDirection}
.groupColumn=${this._groupColumn}
.groupOrder=${this.groupOrder}
.initialCollapsedGroups=${this.initialCollapsedGroups}
>
${!this.narrow
? html`