| /******************************************************************************** |
| * Copyright (c) 2020 Contributors to the Eclipse Foundation |
| * |
| * See the NOTICE file(s) distributed with this work for additional |
| * information regarding copyright ownership. |
| * |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v. 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-2.0. |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| ********************************************************************************/ |
| import { Component, OnInit } from '@angular/core'; |
| import { BaseList } from '@shared/components/base-components/base.list'; |
| import { SetFilterComponent } from '@shared/filters/ag-grid/set-filter/set-filter.component'; |
| import { GRID_FAILURE_COLDEF } from '@pages/grid-failure/grid-failure-list/grid-failure-list-column-definition'; |
| import { GridFailureSandbox } from '@pages/grid-failure/grid-failure.sandbox'; |
| |
| @Component({ |
| selector: 'app-grid-failure-list', |
| templateUrl: './grid-failure-list.component.html', |
| styleUrls: ['./grid-failure-list.component.scss'], |
| }) |
| export class GridFailureListComponent extends BaseList implements OnInit { |
| public columnDefinition: any = GRID_FAILURE_COLDEF; |
| public frameworkComponents: { setFilterComponent: any }; |
| |
| constructor(public sandbox: GridFailureSandbox) { |
| super(); |
| this.frameworkComponents = { setFilterComponent: SetFilterComponent }; |
| } |
| |
| ngOnInit() { |
| this.gridOptions.context = { |
| ...this.gridOptions.context, |
| icons: { edit: true }, |
| }; |
| } |
| } |