import { Component , OnDestroy , OnInit , Input , TemplateRef } from '@angular/core' ; import { TranslateService } from '@ngx-translate/core' ; import { TranslationBaseComponent } from '../language-base/translation-base.component' ; @ Component ( { selector : 'ga-card-grid' , templateUrl : './card-grid.component.html' , styleUrls : [ './card-grid.component.scss' ] } ) export class CardGridComponent extends TranslationBaseComponent implements OnInit , OnDestroy { @ Input ( ) source : any ; @ Input ( ) settings : any = { } ; @ Input ( ) buttonTemplate : TemplateRef < any > ; @ Input ( ) cardSize : undefined | 'big' ; constructor ( readonly translationService ) { super ( translationService ) ; } ngOnInit ( ) { } getKeys ( ) { return Object . keys ( this . settings . columns ) ; } ngOnDestroy ( ) { } }