UNPKG

clr-angular-static-fix

Version:

1. Install Clarity Icons package through npm:

36 lines (33 loc) 1.19 kB
/* * Copyright (c) 2016-2018 VMware, Inc. All Rights Reserved. * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ import { Component } from '@angular/core'; import { ClrStackView } from './stack-view'; @Component({ selector: 'clr-stack-header', template: ` <h4 class="stack-header"> <span class="stack-title"><ng-content></ng-content></span> <span class="stack-actions"> <ng-content select=".stack-action"></ng-content> <!-- Undocumented experimental feature: inline editing. --> <button *ngIf="stackView.editable" class="stack-action btn btn-sm btn-link" (click)="stackView.editing = !stackView.editing" type="button"> Edit </button> <!-- End of undocumented experimental feature. --> </span> </h4> `, // Custom elements are inline by default styles: [ ` :host { display: block; } `, ], }) export class ClrStackHeader { constructor(public stackView: ClrStackView) {} }