blob: 460769d17afcf503a4370fba0f876d7f1a0a5037 [file] [log] [blame]
import { Component, OnInit } from '@angular/core';
import {MatTableDataSource} from '@angular/material';
@Component({
selector: 'app-general-ledger',
templateUrl: './general-ledger.component.html',
styleUrls: ['./general-ledger.component.scss']
})
export class GeneralLedgerComponent implements OnInit {
displayedColumns = ['id','name','description','balance'];
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 {
id: number;
name:string;
description: string;
balance:string;
}
const ELEMENT_DATA: Element[] = [
];