aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/components/ui/forms/value-edit/value-edit.component.ts
blob: 08bc0586c7091f3874e2472dd448aab24470c45b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { Component, Input } from "@angular/core";

@Component({
    selector: 'value-edit',
    templateUrl: './value-edit.component.html',
    styleUrls: ['./value-edit.component.less']
})
export class ValueEditComponent {

    @Input() name:String;
    @Input() validityChangedCallback: Function;

    private pattern:string = "^[\\s\\w\&_.:-]{1,1024}$"
    constructor(){
    }

    private validityChanged = (value):void => {
        if(this.validityChangedCallback) {
            this.validityChangedCallback(value);
        }
    }



}