gd-sprest-bs 9.7.2 → 9.7.3
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/build/components/listForm/index.js +12 -0
- package/dist/gd-sprest-bs-icons.js +262 -262
- package/dist/gd-sprest-bs-icons.min.js +1 -1
- package/dist/gd-sprest-bs.d.ts +5 -2
- package/dist/gd-sprest-bs.js +262 -262
- package/dist/gd-sprest-bs.min.js +1 -1
- package/package.json +2 -2
- package/pnpm-lock.yaml +5 -4
- package/src/components/listForm/index.ts +14 -1
- package/src/components/listForm/types.d.ts +5 -2
|
@@ -819,6 +819,18 @@ exports.ListForm.renderEditForm = function (props) {
|
|
|
819
819
|
},
|
|
820
820
|
getItem: function () { return props.info.item; },
|
|
821
821
|
getValues: getValues,
|
|
822
|
+
insertControl: function (idx, control) {
|
|
823
|
+
// Append the controls
|
|
824
|
+
form.insertControl(idx, control);
|
|
825
|
+
// Wait for the controls to be loaded
|
|
826
|
+
setTimeout(function () {
|
|
827
|
+
var newControl = control.name ? form.getControl(control.name) : null;
|
|
828
|
+
if (newControl) {
|
|
829
|
+
// Append the control
|
|
830
|
+
customControls.push(newControl);
|
|
831
|
+
}
|
|
832
|
+
}, 10);
|
|
833
|
+
},
|
|
822
834
|
isValid: function () {
|
|
823
835
|
var isValid = true;
|
|
824
836
|
// Parse the fields
|