| import { Component, OnInit } from '@angular/core'; |
| import {MatTableDataSource} from '@angular/material'; |
| |
| |
| @Component({ |
| selector: 'app-chart-of-accounts', |
| templateUrl: './chart-of-accounts.component.html', |
| styleUrls: ['./chart-of-accounts.component.scss'] |
| }) |
| export class ChartOfAccountsComponent implements OnInit { |
| displayedColumns = ['code','name','description','type']; |
| 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; |
| type: string; |
| |
| } |
| |
| const ELEMENT_DATA: Element[] = [ |
| |
| ]; |
| |