gd-bs 6.6.83 → 6.6.85

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.
@@ -199,7 +199,10 @@ var _ListBox = /** @class */ (function (_super) {
199
199
  * Public Interface
200
200
  */
201
201
  // Gets the selected items
202
- _ListBox.prototype.getValue = function () { return this._selectedItems; };
202
+ _ListBox.prototype.getValue = function () {
203
+ // Return the value
204
+ return this.props.multi ? this._selectedItems : this._selectedItems[0];
205
+ };
203
206
  // Sets the options
204
207
  _ListBox.prototype.setOptions = function (items) {
205
208
  if (items === void 0) { items = []; }
@@ -45,16 +45,17 @@ var _Table = /** @class */ (function (_super) {
45
45
  head.appendChild(row);
46
46
  // Parse the columns
47
47
  for (var i = 0; i < this.props.columns.length; i++) {
48
+ var colProp = this.props.columns[i];
48
49
  // Append the column
49
50
  var column = document.createElement("th");
50
51
  row.appendChild(column);
51
52
  // See if the footer exists
52
- if (this.props.columns[i].footer) {
53
+ if (colProp.footer || colProp.onRenderFooter) {
53
54
  // Set the flag
54
55
  hasFooter = true;
55
56
  }
56
57
  // Render the column
57
- this.renderColumn(column, this.props.columns[i]);
58
+ this.renderColumn(column, colProp);
58
59
  }
59
60
  // See if there is an event
60
61
  if (this.props.onRenderHeaderRow) {
@@ -78,11 +79,6 @@ var _Table = /** @class */ (function (_super) {
78
79
  // Append the column
79
80
  var column = document.createElement("td");
80
81
  row.appendChild(column);
81
- // See if the footer exists
82
- if (this.props.columns[i].footer) {
83
- // Set the flag
84
- hasFooter = true;
85
- }
86
82
  // Render the column
87
83
  this.renderColumnFooter(column, this.props.columns[i]);
88
84
  }
@@ -149,6 +145,7 @@ var _Table = /** @class */ (function (_super) {
149
145
  // Renders a column footer
150
146
  _Table.prototype.renderColumnFooter = function (column, props) {
151
147
  var _this = this;
148
+ column.innerHTML = props.footer || "";
152
149
  // See if there is an event for this column
153
150
  if (props.onRenderFooter) {
154
151
  // Call the event