Validation parameter for select control

This commit is contained in:
BoykoAlex
2021-08-31 14:38:29 -04:00
parent 2e0b0d46fd
commit c976ff95c7
3 changed files with 6032 additions and 8253 deletions

14280
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -64,7 +64,6 @@
"html-webpack-plugin": "^3.2.0",
"ng-packagr": "^12.0.0",
"ngx-bootstrap": "^6.2.0",
"node-sass": "^4.13.1",
"rimraf": "2.6.1",
"rxjs": "~6.5.3",
"scss-bundle": "^3.0.2",

View File

@@ -222,8 +222,8 @@ export namespace Properties {
}
export class SelectControlModel extends GenericControlModel<any> {
constructor(_property: Property, type: InputType, public options: Array<SelectOption>) {
super(_property, type);
constructor(_property: Property, type: InputType, public options: Array<SelectOption>, validation?: Validation) {
super(_property, type, validation);
if (_property.defaultValue === undefined) {
options.unshift({
name: 'SELECT',