All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.app.molecules.panel.property-table-panel.property-table-panel.component.ts Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
import { Component, Input } from '@angular/core';

import { Entry } from '@model';
import { ValidationService } from '../../validation/validation.service';

@Component({
    selector: 'chutney-property-table-panel',
    templateUrl: './property-table-panel.component.html',
    styleUrls: ['./property-table-panel.component.scss']
})
export class PropertyTablePanelComponent {

    @Input() entries: Array;

    constructor(public validationService: ValidationService) { }

    createEntry() {
        this.entries.push(new Entry('', ''));
    }

    deleteEntry(entry: Entry) {
        this.entries.splice(this.entries.indexOf(entry), 1);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy