admin管理员组文章数量:1434125
How I can change the individual region background color of viewport extjs 4. Here is my code.
{
region: 'south',
title: 'South Panel',
collapsible: true,
html: 'Information goes here',
split: true,
height: 100,
minHeight: 100
}, {
region: 'east',
title: 'East Panel',
collapsible: true,
split: true,
width: 150
}
Now tell me please.
How I can change the individual region background color of viewport extjs 4. Here is my code.
{
region: 'south',
title: 'South Panel',
collapsible: true,
html: 'Information goes here',
split: true,
height: 100,
minHeight: 100
}, {
region: 'east',
title: 'East Panel',
collapsible: true,
split: true,
width: 150
}
Now tell me please.
Share Improve this question asked Mar 27, 2012 at 6:46 AsifAsif 6479 silver badges18 bronze badges1 Answer
Reset to default 5You can assign a class to the body using the bodyCls config then set the background-color via css. Alternatively, you can set the bodyStyle inline to a css string:
bodyCls: 'foo'
// or
bodyStyle: 'background-color: red;'
To do it dynamically, you can set the style on the body:
myPanel.body.setStyle('background-color', 'red');
本文标签: javascripthow i can change color of viewport region extjs 4Stack Overflow
版权声明:本文标题:javascript - how i can change color of viewport region extjs 4? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745613085a2666231.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论