All files / src/app/shared/components/common/info-box info-box.component.ts

100% Statements 2/2
100% Branches 0/0
100% Functions 0/0
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 3315x                               15x                                
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
 
/**
 * The Info Box Component renders the parent's outlet html in a box.
 * If an edit routerLink is given a link is displayed to route to an edit page
 *
 * @example
 * <ish-info-box heading="checkout.widget.billing-address.heading" editRouterLink="/checkout/address">
 *  <ish-address [address]="basket.invoiceToAddress"></ish-address>
 * </ish-info-box>
 */
@Component({
  selector: 'ish-info-box',
  templateUrl: './info-box.component.html',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class InfoBoxComponent {
  /**
   * Translation key of the box title (or a title text).
   */
  @Input() heading: string;
 
  /**
   * Router link for Editing the displayed data. If a routerLink is given a link is displayed to route to an edit page
   */
  @Input() editRouterLink: string;
 
  /**
   * Additional css classes to be passed to the infobox div
   */
  @Input() cssClass: string;
}