我将渲染器应用到我的网格列,但背景颜色没有变化:
renderer: function(value, meta) {
if (parseInt(value) > 0) {
meta.tdCls = 'category-matching'; return value;
}
else {
meta.tdCls = 'category-not-matching'; return value;
}
}
Run Code Online (Sandbox Code Playgroud)
CSS:
.x-grid-cell .category-matching {
background-color:green;
}
.x-grid-cell .category-not-matching {
background-color:red;
}
Run Code Online (Sandbox Code Playgroud)
我也试过了
.grid-cell-inner
Run Code Online (Sandbox Code Playgroud)
和
background-color:red; !important
Run Code Online (Sandbox Code Playgroud)
但没有效果.
任何的想法?
我被困在这里:
我需要获取以下值
org.jboss.system.server.ServerInfo
通过这里的代码,我正在读取 mbean 属性,但我只能找到 .hashvalues!
final MBeanAttributeInfo[] attributes = server.getMBeanInfo(mbean).getAttributes();
for (final MBeanAttributeInfo attribute : attributes) {
String name = attribute.getName();
}
Run Code Online (Sandbox Code Playgroud)
经过两天的搜索,我请求帮助!
非常感谢,罗曼。