diff options
author | 2019-12-05 17:04:45 +0200 | |
---|---|---|
committer | 2019-12-08 14:20:44 +0200 | |
commit | 77dd486269bb11f1e206114b87033a7dcc58c012 (patch) | |
tree | 8df5710c6f184a2f58837b48df94009f2db39248 /vid-webpack-master/src/app/shared/components/formControls/component/multiselect | |
parent | ad530ef6478ed2c8d3d153738ed735130b4019e7 (diff) |
Changing VNF platform to multiselect + cypress + API
Issue-ID: VID-724
Signed-off-by: Yoav Schneiderman <yoav.schneiderman@intl.att.com>
Change-Id: Ie8c720974da3419e26ce7e8675622f75780581b9
Signed-off-by: Yoav Schneiderman <yoav.schneiderman@intl.att.com>
Diffstat (limited to 'vid-webpack-master/src/app/shared/components/formControls/component/multiselect')
-rw-r--r-- | vid-webpack-master/src/app/shared/components/formControls/component/multiselect/multiselect.formControl.component.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vid-webpack-master/src/app/shared/components/formControls/component/multiselect/multiselect.formControl.component.ts b/vid-webpack-master/src/app/shared/components/formControls/component/multiselect/multiselect.formControl.component.ts index 9b900dedf..26a55e9d2 100644 --- a/vid-webpack-master/src/app/shared/components/formControls/component/multiselect/multiselect.formControl.component.ts +++ b/vid-webpack-master/src/app/shared/components/formControls/component/multiselect/multiselect.formControl.component.ts @@ -19,8 +19,10 @@ export class MultiselectFormControlComponent implements OnChanges{ constructor(private _multiselectFormControlService : MultiselectFormControlService){ this.multiselectFormControlService = _multiselectFormControlService; } + dropdownSettings = { - singleSelection : false + singleSelection : false, + limitSelection : 1000 }; options : MultiSelectItem[]; @@ -36,10 +38,10 @@ export class MultiselectFormControlComponent implements OnChanges{ this.form.controls[this.data.controlName].setValue(this.selectedItems); }) }); - } if (changes["data"] !== undefined && changes["data"].currentValue !== changes["data"].previousValue && changes["data"].firstChange) { if (this.data.onInit) { + this.dropdownSettings.limitSelection = this.data.limitSelection; this.data.onInit(this.data, this.form); } } |