javascript - how i can change color of viewport region extjs 4? - Stack Overflow

How I can change the individual region background color of viewport extjs 4.Here is my code.{region: &

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 badges
Add a ment  | 

1 Answer 1

Reset to default 5

You 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');

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745613085a4636066.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信