mp-common
Version:
This is XPO MarketPlace common libary
30 lines (24 loc) • 663 B
text/typescript
import { Component, Input } from '@angular/core';
/**
* Class to store the data to bind in the data card
*/
export class DataCardDatum {
constructor(public key: string, public value: string) { }
}
/**
* The data card renders a data bound list of a Map
*/
({
selector: 'mp-data-card',
templateUrl: './data-card.component.html',
styleUrls: [ './data-card.component.scss' ]
})
export class DataCardComponent {
() data: Array<DataCardDatum>;
/** The title for the panel */
() title: string;
() key: string;
() value: string;
() emptyNote: string;
constructor() { }
}