/** Angular Imports */ import { Component , OnInit , ViewChild } from '@angular/core' ; import { MatDialog } from '@angular/material/dialog' ; import { MatPaginator } from '@angular/material/paginator' ; import { MatTableDataSource , MatTable } from '@angular/material/table' ; import { ActivatedRoute } from '@angular/router' ; import { FormControl } from '@angular/forms' ; /** Custom Services */ import { AccountTransfersService } from '../account-transfers.service' ; /** Dialog Components */ import { DeleteDialogComponent } from 'app/shared/delete-dialog/delete-dialog.component' ; /**
 * Recurring Deposits Standing Instructions Tab
 */ @ Component ( { selector : 'mifosx-list-transactions' , templateUrl : './list-transactions.component.html' , styleUrls : [ './list-transactions.component.scss' ] } ) export class ListTransactionsComponent { /** List Transactions Data */ listTransactionData : any ; /** Data source for instructions table. */ dataSource = new MatTableDataSource ( ) ; /** Columns to be displayed in instructions table. */ displayedColumns : string [ ] = [ 'transactionDate' , 'amount' , 'notes' , 'reversed' ] ; /** Paginator for centers table. */ @ ViewChild ( MatPaginator , { static : true } ) paginator : MatPaginator ; param { ActivatedRoute } route constructor ( private route ) { this . route . data . subscribe ( ( data ) => { this . listTransactionData = data . listTransactionData ; this . dataSource = new MatTableDataSource ( this . listTransactionData . transactions . pageItems ) ; this . dataSource . paginator = this . paginator ; } ) ; } }