Skip to content
Snippets Groups Projects
Commit f1d2ec13 authored by juanf's avatar juanf
Browse files

SSDM-344 : New Free Form Table structure (ongoing work).

SVN: 32308
parent 1d17d84b
No related branches found
No related tags found
No related merge requests found
...@@ -74,7 +74,7 @@ function FreeFormTableController(sample, isEnabled) { ...@@ -74,7 +74,7 @@ function FreeFormTableController(sample, isEnabled) {
tableModel.modelDetailed.splice(rowIdx, 0, new Array(numColumns)); tableModel.modelDetailed.splice(rowIdx, 0, new Array(numColumns));
//Mini Model //Mini Model
tableModel.modelMini.rows.splice(rowIdx, 0, ''); tableModel.modelMini.rows.splice(rowIdx, 0, '');
//Trigger Update
this._updateChangesOnDOMandView(tableModel, $wrappedTable); this._updateChangesOnDOMandView(tableModel, $wrappedTable);
} }
...@@ -83,7 +83,7 @@ function FreeFormTableController(sample, isEnabled) { ...@@ -83,7 +83,7 @@ function FreeFormTableController(sample, isEnabled) {
tableModel.modelDetailed.splice(rowIdx, 1); tableModel.modelDetailed.splice(rowIdx, 1);
//Mini Model //Mini Model
tableModel.modelMini.rows.splice(rowIdx, 1); tableModel.modelMini.rows.splice(rowIdx, 1);
//Trigger Update
this._updateChangesOnDOMandView(tableModel, $wrappedTable); this._updateChangesOnDOMandView(tableModel, $wrappedTable);
} }
...@@ -94,20 +94,26 @@ function FreeFormTableController(sample, isEnabled) { ...@@ -94,20 +94,26 @@ function FreeFormTableController(sample, isEnabled) {
} }
//Mini Model //Mini Model
tableModel.modelMini.columns.splice(colIdx, 0, ''); tableModel.modelMini.columns.splice(colIdx, 0, '');
//Trigger Update
this._updateChangesOnDOMandView(tableModel, $wrappedTable); this._updateChangesOnDOMandView(tableModel, $wrappedTable);
} }
this.delColumn = function(tableModel, $wrappedTable, colIdx) { this.delColumn = function(tableModel, $wrappedTable, colIdx) {
//Detailed Model
for(var i = 0; i < tableModel.modelDetailed.length; i++) {
tableModel.modelDetailed[i].splice(colIdx, 1);
}
//Mini Model
tableModel.modelMini.columns.splice(colIdx, 1);
//Trigger Update
this._updateChangesOnDOMandView(tableModel, $wrappedTable); this._updateChangesOnDOMandView(tableModel, $wrappedTable);
} }
this.importCSV = function(tableModel) { this.importCSV = function(tableModel, $wrappedTable) {
} }
this.exportCSV = function(tableModel) { this.exportCSV = function(tableModel, $wrappedTable) {
} }
// //
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment