| import { Component } from '@angular/core'; |
| import { ContactsSandbox } from '@pages/contacts/contacts.sandbox'; |
| import { CONTACTS_COLDEF } from '@pages/contacts/contacts-list/contacts-list-column-definition'; |
| import { BaseList } from '@shared/components/base-components/base.list'; |
| import { SetFilterComponent } from '@app/shared/filters/ag-grid/set-filter/set-filter.component'; |
| import { ToastrService } from 'ngx-toastr'; |
| |
| @Component({ |
| selector: 'app-contacts-list', |
| templateUrl: './contacts-list.component.html', |
| styleUrls: ['./contacts-list.component.scss'], |
| }) |
| export class ContactsListComponent extends BaseList { |
| public columnDefinition: any = CONTACTS_COLDEF; |
| public frameworkComponents: { setFilterComponent: any }; |
| constructor( public contactsSandbox: ContactsSandbox, protected toastr: ToastrService ) { |
| super(); |
| this.frameworkComponents = { setFilterComponent: SetFilterComponent }; |
| |
| this.toastr.success('Hello world!', 'Toastr fun!'); |
| } |
| } |