Framework WIP

- Finish non-app tabs loading on first load
- Missing nm column button
This commit is contained in:
nathan 2024-06-11 09:03:04 -06:00
parent 6760ad8a0b
commit 823f98f49e
2 changed files with 18 additions and 5 deletions

View File

@ -200,6 +200,17 @@ div.et2_nextmatch {
.egwGridView_outer { .egwGridView_outer {
height: 100%; height: 100%;
thead tr th.optcol span.selectcols {
height: 9px;
padding: 4px 14px 0 2px;
margin-top: 4px;
background-image: url(../../../api/templates/default/images/selectcols.svg);
background-repeat: no-repeat;
background-size: 10px 10px;
display: inline-block;
background-position: top;
}
} }
} }

View File

@ -277,9 +277,7 @@ export class EgwFramework extends LitElement
// Tabs present // Tabs present
this.updateComplete.then(() => this.updateComplete.then(() =>
{ {
this.querySelectorAll("egw-app[active]").forEach(n => n.removeAttribute("active")); this.showTab(appname);
this.tabs.show(appname);
}); });
}); });
}); });
@ -511,11 +509,15 @@ export class EgwFramework extends LitElement
* @protected * @protected
*/ */
protected handleApplicationTabShow(event) protected handleApplicationTabShow(event)
{
// Create & show app
this.showTab(event.target.activeTab.panel);
}
public showTab(appname)
{ {
this.querySelectorAll("egw-app").forEach(app => app.removeAttribute("active")); this.querySelectorAll("egw-app").forEach(app => app.removeAttribute("active"));
// Create & show app
const appname = event.target.activeTab.panel;
let appComponent = this.querySelector(`egw-app#${appname}`); let appComponent = this.querySelector(`egw-app#${appname}`);
if(!appComponent) if(!appComponent)
{ {