Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
75
DockManager Event
posted

Hello team,
I am working with its DockManager component, unfortunately I have not been able to activate the paneClose or activePaneChanged event, the component does nothing.

I leave the code snippet:

// .TS

@ViewChild('dockPrincipal')
public dmPrincipal: ElementRef<IgcDockManagerComponent>;
ngAfterViewInit() {
this.dmPrincipal.nativeElement.addEventListener('paneClose', evt => {
console.log('paneClose');
console.log(evt);
});
}

// HTML
<igc-dockmanager #dockPrincipal [layout]=layout id="dockPrincipal" style="height: 100%;">
<div slot="1" class="dockManagerContent" style="width: 100%; height: 100%;">
<h2>EXAMPLE 1</h2>
</div>
<div slot="2" class="dockManagerContent" style="width: 100%; height: 100%;">
<h2>EXAMPLE 2</h2>
</div>
</igc-dockmanager>
Parents Reply Children
No Data