@nys-cui/cui-formpill 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/cui-formpill.js +13 -2
package/package.json
CHANGED
package/src/cui-formpill.js
CHANGED
@@ -820,11 +820,22 @@ class CUI_FORMPILL extends HTMLElement {
|
|
820
820
|
this.dValueField = document.createElement('cui-listbox');
|
821
821
|
this.dValueField.setState({ 'items': controls.value.options, 'label': `${(controls.fieldLabel) ? controls.fieldLabel : 'Value'}` });
|
822
822
|
|
823
|
+
|
824
|
+
if (controls.value.multiple) {
|
825
|
+
this.dValueField.setAttribute('multiple', true)
|
826
|
+
}
|
827
|
+
if (controls.value.codedesc) {
|
828
|
+
this.dValueField.setAttribute('codedesc', true)
|
829
|
+
}
|
830
|
+
if (controls.value.search) {
|
831
|
+
this.dValueField.setAttribute('search', true)
|
832
|
+
}
|
833
|
+
|
823
834
|
if (pill._state.sValue2.indexOf(',') == -1) {
|
824
835
|
this.dValueField.setAttribute('value', pill._state.sValue2)
|
825
836
|
}
|
826
837
|
else {
|
827
|
-
|
838
|
+
|
828
839
|
let aValues = pill._state.sValue2.split(',');
|
829
840
|
this.dValueField.setAttribute('value', aValues)
|
830
841
|
}
|
@@ -921,7 +932,7 @@ class CUI_FORMPILL extends HTMLElement {
|
|
921
932
|
this.field = document.createElement('cui-date');
|
922
933
|
}
|
923
934
|
|
924
|
-
if(controls.value.control[i].validation){
|
935
|
+
if (controls.value.control[i].validation) {
|
925
936
|
this.field.setAttribute('validation', controls.value.control[i].validation)
|
926
937
|
}
|
927
938
|
|