/*
- *
+ *
* Copyright 2016 RIFT.IO Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
//' + String((100/length) - 5) + '%'
switch(node["widget-type"]) {
case 'GAUGE':
- return (
- <div
- className="monitoring_params_component"
- key={prop + '-' + prop.name+ '-' + count}
- mp={node["mp-id"]}>
- <div>{node.name}</div>
- <Components.default.Gauge value={node[valueProperty] || 0} min={numericConstraintsMinPresent ? node['numeric-constraints']['min-value'] : 0} max={numericConstraintsMaxPresent ? node['numeric-constraints']['max-value'] : 100} units={node['units'] || ''} />
- </div>);
- break;
+ // Disabked fir OSM
+ // return (
+ // <div
+ // className="monitoring_params_component"
+ // key={prop + '-' + prop.name+ '-' + count}
+ // mp={node["mp-id"]}>
+ // <div>{node.name}</div>
+ // <Components.default.Gauge value={node[valueProperty] || 0} min={numericConstraintsMinPresent ? node['numeric-constraints']['min-value'] : 0} max={numericConstraintsMaxPresent ? node['numeric-constraints']['max-value'] : 100} units={node['units'] || ''} />
+ // </div>);
+ // break;
case 'TEXTBOX':
case 'COUNTER':
var displayValue = 0;
}
ret.push(html)
}
- return ret.sort(function(a, b){
- return (a.title > b.title) ? -1 : 1;
- });
+ return ret.sort(function(a,b) {
+ var titleA = a.title && a.title.toUpperCase();
+ var titleB = b.title && b.title.toUpperCase();
+ return (titleA < titleB) ? -1 : (titleA > titleB) ? 1 : 0;
+ });
}