mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2626] added preserved state functionality for sidenav component (#3278)
* [ADF-2626] added preserved state functionality for sidenav component
* [ADF-2626] changed logic for preserving the sidenav component state
* [ADF-2626] added missing curly brace }
* [ADF-2626] small changes on logic based on pr comments
* [ADF-2843] added tooltip for create folder and edit folder icons from Content Services
* Revert "[ADF-2843] added tooltip for create folder and edit folder icons from Content Services"
This reverts commit d5a7abb65b
.
* [ADF-2626] changed casting
* [ADF-2626] updated documentation with event
* [ADF-2626] removed app-config pipe because it was not being used
This commit is contained in:
committed by
Eugenio Romano
parent
a5aff3d2df
commit
440c666583
@@ -23,4 +23,4 @@
|
||||
</adf-layout-container>
|
||||
</div>
|
||||
|
||||
<ng-template #emptyTemplate></ng-template>
|
||||
<ng-template #emptyTemplate></ng-template>
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Component, ContentChild, Input, OnInit, AfterViewInit, ViewChild, OnDestroy, TemplateRef } from '@angular/core';
|
||||
import { Component, ContentChild, Input, Output, OnInit, AfterViewInit, ViewChild, OnDestroy, TemplateRef, EventEmitter } from '@angular/core';
|
||||
import { MediaMatcher } from '@angular/cdk/layout';
|
||||
import { SidenavLayoutContentDirective } from '../../directives/sidenav-layout-content.directive';
|
||||
import { SidenavLayoutHeaderDirective } from '../../directives/sidenav-layout-header.directive';
|
||||
@@ -38,6 +38,8 @@ export class SidenavLayoutComponent implements OnInit, AfterViewInit, OnDestroy
|
||||
@Input() hideSidenav = false;
|
||||
@Input() expandedSidenav = true;
|
||||
|
||||
@Output() expanded = new EventEmitter<boolean>();
|
||||
|
||||
@ContentChild(SidenavLayoutHeaderDirective) headerDirective: SidenavLayoutHeaderDirective;
|
||||
@ContentChild(SidenavLayoutNavigationDirective) navigationDirective: SidenavLayoutNavigationDirective;
|
||||
@ContentChild(SidenavLayoutContentDirective) contentDirective: SidenavLayoutContentDirective;
|
||||
@@ -57,6 +59,7 @@ export class SidenavLayoutComponent implements OnInit, AfterViewInit, OnDestroy
|
||||
};
|
||||
|
||||
constructor(private mediaMatcher: MediaMatcher) {
|
||||
|
||||
this.onMediaQueryChange = this.onMediaQueryChange.bind(this);
|
||||
}
|
||||
|
||||
@@ -89,6 +92,7 @@ export class SidenavLayoutComponent implements OnInit, AfterViewInit, OnDestroy
|
||||
}
|
||||
|
||||
this.container.toggleMenu();
|
||||
this.expanded.emit(!this.isMenuMinimized);
|
||||
}
|
||||
|
||||
get isMenuMinimized() {
|
||||
|
Reference in New Issue
Block a user