| import { ContactTypeCellRendererComponent } from '@app/shared/components/cell-renderer/contact-type-cell-renderer/contact-type-cell-renderer.component'; |
| |
| export const CONTACTS_COLDEF = [ |
| { |
| field: 'name', |
| headerName: 'Contacts.Name', |
| sortable: true, |
| filter: 'agTextColumnFilter', |
| }, |
| { |
| field: 'contactType', |
| headerName: 'Contacts.ContactType', |
| sortable: true, |
| filter: 'agTextColumnFilter', |
| cellRendererFramework: ContactTypeCellRendererComponent |
| }, |
| { |
| field: 'note', |
| headerName: 'Contacts.Note', |
| sortable: true, |
| filter: 'agTextColumnFilter', |
| }, |
| { |
| valueGetter: function(params) { |
| if (params.data.community || params.data.street || params.data.housenumber) { |
| return (`${params.data.community}, ${params.data.street} ${params.data.housenumber}`); |
| } else { |
| return ''; |
| } |
| }, |
| headerName: 'Contacts.MainAddress', |
| sortable: true, |
| filter: 'agTextColumnFilter', |
| } |
| ]; |