mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
feature #3748: Set options for data tables
This commit is contained in:
1 parent
a429508a8c
commit
6a73bb66e3
1 file changed
+17
-3
@@ -65,6 +65,7 @@ define(function(require) {
|
||||
'getElementData': _getElementData,
|
||||
'waitingNodes': _waitingNodes,
|
||||
'recountCheckboxes': _recountCheckboxes,
|
||||
'filter': _filter
|
||||
}
|
||||
|
||||
return TabDatatable;
|
||||
@@ -85,10 +86,19 @@ define(function(require) {
|
||||
that.recountCheckboxes(that.dataTable);
|
||||
})
|
||||
|
||||
this.initCheckAllBoxes();
|
||||
this.tableCheckboxesListener();
|
||||
this.infoListener(this.resource + ".show");
|
||||
|
||||
this.dataTable.fnSetColumnVis(0, false);
|
||||
this.dataTable.fnSort([[1, SunstoneConfig.tableOrder]]);
|
||||
|
||||
if (this.conf.actions) {
|
||||
this.dataTable.fnSetColumnVis(0, true);
|
||||
this.initCheckAllBoxes();
|
||||
this.tableCheckboxesListener();
|
||||
}
|
||||
|
||||
if (this.conf.info) {
|
||||
this.infoListener(this.resource + ".show", this.tabId);
|
||||
}
|
||||
}
|
||||
|
||||
//Shows run a custom action when clicking on rows.
|
||||
@@ -379,4 +389,8 @@ define(function(require) {
|
||||
};
|
||||
return selected_nodes;
|
||||
}
|
||||
|
||||
function _filter(value, columnId) {
|
||||
this.dataTable.fnFilter(value, columnId);
|
||||
}
|
||||
})
|
||||
Reference in new issue
Block a user