@wavemaker/app-ng-runtime 11.4.3-next.25771 → 11.4.3-next.25773
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.
app-ng-runtime/package.json
CHANGED
|
@@ -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
|
}
|