@wavemaker/app-ng-runtime 11.4.2-rc.5381 → 11.4.2-rc.5384

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/app-ng-runtime",
3
- "version": "11.4.2-rc.5381",
3
+ "version": "11.4.2-rc.5384",
4
4
  "description": "All modules required for a wavemaker application.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -573,10 +573,16 @@ $.widget('wm.datatable', {
573
573
  $tbody.append(rowTemplate);
574
574
  if (self.options.rowExpansionEnabled) {
575
575
  var rowHeight = self.options.rowDef.height;
576
+ var rowPosition = self.options.rowDef.position;
576
577
  var colSpanLength = _.filter(self.preparedHeaderData, function(c) {return c.show}).length - 1;
577
578
  var $tr = $('<tr class="app-datagrid-detail-row" tabindex="0" role="row" data-row-id="' + row.$$pk + '"><td></td><td colspan="' + colSpanLength + '" class="app-datagrid-row-details-cell">' +
578
579
  '<div class="row-overlay"><div class="row-status"><i class="' + self.options.loadingicon + '"></i></div></div><div class="details-section"></div>' +
579
580
  '</td></tr>');
581
+ if(rowPosition === "-1"){
582
+ $tr = $('<tr class="app-datagrid-detail-row" tabindex="0" role="row" data-row-id="' + row.$$pk + '"><td colspan="' + colSpanLength + '" class="app-datagrid-row-details-cell">' +
583
+ '<div class="row-overlay"><div class="row-status"><i class="' + self.options.loadingicon + '"></i></div></div><div class="details-section"></div>' +
584
+ '</td><td></td></tr>');
585
+ }
580
586
  if (rowHeight) {
581
587
  $tr.find('div.row-overlay').css('min-height', rowHeight);
582
588
  }