blob: 5a14d8f20610cfe7ef2e73e09ad70f50110a181f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import { Component, ViewChild, ElementRef, ContentChildren } 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);
}
}
}
|