Skip to content

Commit

Permalink
Closes-Bug: #1523876 - Added a sorting comparator for status fields w…
Browse files Browse the repository at this point in the history
…hich needs

to be passed as sort function to the column.

Change-Id: I73a088cd7567c4f8cb22a283b582a9cc38451796
  • Loading branch information
manojgn committed Dec 8, 2015
1 parent 7b6a7a2 commit 8ea4043
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ monitorInfraAnalyticsSummaryClass = (function() {
searchFn:function(d) {
return getNodeStatusContentForSummayPages(d,'text');
},
sortable:{
sortBy: function (d) {
return getNodeStatusContentForSummayPages(d,'text');
}
},
sorter:comparatorStatus,
minWidth:110,
exportConfig: {
allow: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ monitorInfraConfigSummaryClass = (function() {
searchFn:function(dc) {
return getNodeStatusContentForSummayPages(dc,'text');
},
sortable:{
sortBy: function (d) {
return getNodeStatusContentForSummayPages(d,'text');
}
},
sorter:comparatorStatus,
minWidth:110,
exportConfig: {
allow: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ monitorInfraControlSummaryClass = (function() {
searchFn:function(d) {
return getNodeStatusContentForSummayPages(d,'text');
},
sortable:{
sortBy: function (d) {
return getNodeStatusContentForSummayPages(d,'text');
}
},
sorter:comparatorStatus,
minWidth:150
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,13 @@ monitorInfraDatabaseSummaryClass = (function() {
advFormatter: function(dc) {
return getNodeStatusContentForSummayPages(dc,'text');
}
}
},
sortable:{
sortBy: function (d) {
return getNodeStatusContentForSummayPages(d,'text');
}
},
sorter:comparatorStatus
},
{
field:"formattedAvailableSpace",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,19 @@ monitorInfraComputeSummaryClass = (function() {
},
minWidth:150,
exportConfig: {
allow: true,
advFormatter: function(dc) {
return getNodeStatusContentForSummayPages(dc,'text');
}
},
},
{
allow: true,
advFormatter: function(dc) {
return getNodeStatusContentForSummayPages(dc,'text');
}
},
sortable:{
sortBy: function (d) {
return getNodeStatusContentForSummayPages(d,'text');
}
},
sorter:comparatorStatus
},
{
field:"vRouterType",
name:"Type",
formatter: function(r,c,v,cd,dc) {
Expand Down

0 comments on commit 8ea4043

Please sign in to comment.