gd-sprest-bs 10.5.9 → 10.6.0

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.
@@ -76,6 +76,8 @@ var SPFxListWebPart = function (wpProps) {
76
76
  }
77
77
  }
78
78
  ];
79
+ // Call the base event
80
+ props = wpProps.onEditFormRendering ? wpProps.onEditFormRendering(props) : props;
79
81
  // Return the properties
80
82
  return props;
81
83
  },
@@ -90,6 +92,8 @@ var SPFxListWebPart = function (wpProps) {
90
92
  onClick: function () { loadLists(); }
91
93
  }
92
94
  });
95
+ // Call the base event
96
+ props = wpProps.onEditFormFooterRendering ? wpProps.onEditFormFooterRendering(props) : props;
93
97
  // Return the properties
94
98
  return props;
95
99
  },
@@ -100,6 +104,8 @@ var SPFxListWebPart = function (wpProps) {
100
104
  // Load the lists
101
105
  loadLists(wp.Configuration ? wp.Configuration.ListId : null);
102
106
  }
107
+ // Call the base event
108
+ wpProps.onEditFormDisplaying ? wpProps.onEditFormDisplaying() : null;
103
109
  },
104
110
  // The configuration saving event
105
111
  onConfigSaving: function (cfg) {
@@ -107,9 +113,13 @@ var SPFxListWebPart = function (wpProps) {
107
113
  var values = wp.Form.getValues();
108
114
  // Set the configuration
109
115
  var listItem = values["List"];
110
- cfg.ListId = listItem ? listItem.value : null;
111
- cfg.ListName = listItem ? listItem.text : null;
112
- cfg.WebUrl = values["WebUrl"];
116
+ cfg = {
117
+ ListId: listItem ? listItem.value : null,
118
+ ListName: listItem ? listItem.text : null,
119
+ WebUrl: values["WebUrl"]
120
+ };
121
+ // Call the base event
122
+ cfg = wpProps.onConfigSaving ? wpProps.onConfigSaving(cfg) : cfg;
113
123
  // Return the configuration
114
124
  return cfg;
115
125
  }