Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150293 | Dec 31,2019 09:33 AM UTC | Jan 2,2020 08:50 AM UTC | Angular - EJ 2 | 1 |
![]() |
Tags: DashboardLayout |
<ejs-sidebar id="sidebar-treeview" class="dock-menu" #sidebarTreeviewInstance [width]='width'
[mediaQuery]='mediaQuery' [target]='target' (open)="onOpen($event)" (change)="onChange($event)">
</ejs-sidebar>
onOpen(){
if(!Browser.isDevice) {
let parentElement : HTMLElement = document.getElementById("dashboardParent");
// 290 px is the width of the sidebar element.
parentElement.style.width = "calc(100% - 290px)"
}
}
onChange(){
if(!Browser.isDevice) {
let parentElement : HTMLElement = document.getElementById("dashboardParent");
parentElement.style.width = "100%";
this.dashboard.refresh();
}
}
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.