kwh max lenght
This commit is contained in:
parent
9570b77e32
commit
fa12fcec50
|
@ -48,7 +48,7 @@ export class AddEditMasterBuildingComponent {
|
||||||
owner: ["", Validators.required],
|
owner: ["", Validators.required],
|
||||||
address: ["", Validators.required],
|
address: ["", Validators.required],
|
||||||
phone: ["", [Validators.required, Validators.pattern(/^[0-9]{10,15}$/)]],
|
phone: ["", [Validators.required, Validators.pattern(/^[0-9]{10,15}$/)]],
|
||||||
kwh: ["", [Validators.required, Validators.maxLength(15), Validators.pattern(/^[0-9]{1,15}$/)]],
|
kwh: ["", [Validators.required, Validators.maxLength(15), Validators.pattern(/^[0-9]{1,7}$/)]],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ export class AddEditMasterBuildingComponent {
|
||||||
address: [this.dataRow.address, Validators.required],
|
address: [this.dataRow.address, Validators.required],
|
||||||
phone: [this.dataRow.phone, [Validators.required, Validators.pattern(/^[0-9]{10,15}$/)]],
|
phone: [this.dataRow.phone, [Validators.required, Validators.pattern(/^[0-9]{10,15}$/)]],
|
||||||
owner: [this.dataRow.owner,Validators.required],
|
owner: [this.dataRow.owner,Validators.required],
|
||||||
kwh: [this.dataRow.kwh, [Validators.required, Validators.maxLength(15), Validators.pattern(/^[0-9]{1,15}$/)]],
|
kwh: [this.dataRow.kwh, [Validators.required, Validators.maxLength(15), Validators.pattern(/^[0-9]{1,7}$/)]],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue