blob: 2ab52e6b7ac717e45e325358ba4f6c47e491e1f9 [file] [log] [blame]
<!-------------------------------------------------------------------------------
* Copyright (c) 2020 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
-------------------------------------------------------------------------------->
<div [class.collapsible-header---with-content]="appHeaderTemplateRef"
class="collapsible-header">
<button (click)="toggle()"
type="button"
class="collapsible-header--toggle cursor-pointer">
<mat-icon [class.collapsible-header--icon---collapsed]="isCollapsed$ | async"
class="collapsible-header--icon">
navigate_next
</mat-icon>
<span class="collapsible-header--spacing"></span>
<span *ngIf="appTitle" class="collapsible-header--title">
{{appTitle}}
</span>
</button>
<ng-container *ngTemplateOutlet="appHeaderTemplateRef"></ng-container>
</div>
<div #bodyElement
class="collapsible-body">
<ng-content></ng-content>
</div>