CSIT Fix for SDC-2585
[sdc.git] / catalog-ui / src / app / ng2 / components / ui / forms / value-edit / value-edit.component.ts
1 import { Component, Input } from "@angular/core";
2
3 @Component({
4     selector: 'value-edit',
5     templateUrl: './value-edit.component.html',
6     styleUrls: ['./value-edit.component.less']
7 })
8 export class ValueEditComponent {
9
10     @Input() name:String;
11     @Input() validityChangedCallback: Function;
12
13     private pattern:string = "^[\\s\\w\&_.:-]{1,1024}$"
14     constructor(){
15     }
16
17     private validityChanged = (value):void => {
18         if(this.validityChangedCallback) {
19             this.validityChangedCallback(value);
20         }
21     }
22
23
24
25 }