41 lines
1.4 KiB
TypeScript
41 lines
1.4 KiB
TypeScript
|
import {AfterViewChecked, AfterViewInit, Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
|
||
|
import {ConfiguratorParameter} from '../../../../shared/models/configurator-parameter.interface';
|
||
|
import {Page} from '../../../../shared/models/paging/page.interface';
|
||
|
import {LazyLoadEvent} from 'primeng/api';
|
||
|
|
||
|
@Component({
|
||
|
selector: 'app-configurator-list-of-parameters',
|
||
|
templateUrl: './configurator-list-of-parameters.component.html',
|
||
|
styleUrls: ['./configurator-list-of-parameters.component.scss']
|
||
|
})
|
||
|
export class ConfiguratorListOfParametersComponent implements OnInit {
|
||
|
|
||
|
@Input() parametersListInput: ConfiguratorParameter[];
|
||
|
@Input() loadingInput: boolean;
|
||
|
@Output() editEventRequest = new EventEmitter<ConfiguratorParameter>();
|
||
|
|
||
|
editParameterRequest: ConfiguratorParameter;
|
||
|
parametersList: ConfiguratorParameter[];
|
||
|
selectedParameterRequest: ConfiguratorParameter;
|
||
|
totalRecords: number;
|
||
|
rows = 10;
|
||
|
|
||
|
constructor() { }
|
||
|
|
||
|
ngOnInit(): void {
|
||
|
const initParameter: ConfiguratorParameter = {
|
||
|
configurationId: null,
|
||
|
configurationVariable: null,
|
||
|
variableType: null,
|
||
|
integerValue: null,
|
||
|
stringValue: null
|
||
|
};
|
||
|
this.editEventRequest.emit(initParameter);
|
||
|
}
|
||
|
|
||
|
passSelectedConfigurator(parameter: ConfiguratorParameter) {
|
||
|
this.editEventRequest.emit(parameter);
|
||
|
}
|
||
|
|
||
|
}
|