Skip to content
Snippets Groups Projects
likert-row-label.pipe.ts 468 B
Newer Older
import { Pipe, PipeTransform } from '@angular/core';
import { LikertRowElement } from 'common/models/elements/compound-elements/likert/likert-row';
import { TextImageLabel } from 'common/models/elements/element';

@Pipe({
  name: 'LikertRowLabel'
})
export class LikertRowLabelPipe implements PipeTransform {
  // eslint-disable-next-line class-methods-use-this
  transform(rows: LikertRowElement[]): TextImageLabel[] {
    return rows.map(row => row.rowLabel);
  }
}