aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/cypress.json.tpl
AgeCommit message (Expand)AuthorFilesLines
2020-01-22Catalog alignmentys96931-0/+12
href='#n1'>1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
import {Component, ViewChild, ElementRef, ContentChildren, Input} from '@angular/core';
import { BrowserModule } from '@angular/platform-browser'
import { UiElementBase, UiElementBaseInterface } from './../ui-element-base.component';

@Component({
    selector: 'ui-element-input',
    templateUrl: './ui-element-input.component.html',
    styleUrls: ['./ui-element-input.component.less'],
})
export class UiElementInputComponent extends UiElementBase implements UiElementBaseInterface {
    constructor() {
        super();
        this.pattern = this.validation.validationPatterns.comment;
    }

    onSave() {
        if (!this.control.invalid){
            this.baseEmitter.emit(this.value);
        }
    }
}