blob: 847bb6ce2f0b758f9c9c8194c617eab5dbd57e83 [file] [log] [blame]
import { Component, OnInit } from '@angular/core';
import {MatTableDataSource} from '@angular/material';
@Component({
selector: 'app-transaction-type',
templateUrl: './transaction-type.component.html',
styleUrls: ['./transaction-type.component.scss']
})
export class TransactionTypeComponent implements OnInit {
displayedColumns = ['code','name','description'];
dataSource = new MatTableDataSource(ELEMENT_DATA);
applyFilter(filterValue: string) {
filterValue = filterValue.trim(); // Remove whitespace
filterValue = filterValue.toLowerCase(); // MatTableDataSource defaults to lowercase matches
this.dataSource.filter = filterValue;
}
constructor() { }
ngOnInit() {
}
}
export interface Element {
code: string;
name: string;
description: string;
}
const ELEMENT_DATA: Element[] = [
];