javascript - ExtJS & Css Panel Background's -
javascript - ExtJS & Css Panel Background's -
i new both sencha extjs , css whole. have 3 kid panel's within master panel. want set same background color 3 panel's within master panel using css. have created .css file , linked html. content of css file are:
.x-panel.child-content-style { background-image : url('titlebackground.png');
}
i can create happen without using css setting bodystyle:{"background-image":"url('titlebackground.png')"}
config. works sense there improve way using css.
when seek , add together css using cls config property nil happens. when set bodycls property sets backgrond of entire application not want. looking alter background few panel's. have tried specifying css element name in bodystyle config in lieu of inline no joy.
here kid panel's:
{ xtype: 'panel', html: '<img src=\'appicon.png\' style=\'width:52px;height:52px\'> ', cls: 'child-content-style' }, { xtype: 'panel', html: '<h2 style=\'font-family:verdana\'>toolkit v3.0</h2>', bodystyle:{"background-image":"url('titlebackground.png')"} }, { xtype: 'panel', html: ' <img src=\'appicon.png\' style=\'width:52px;height:52px\'>', bodystyle:{"background-image":"url('titlebackground.png')"} }
is possible or should cjoke loss , leave inline?
thanks
i believe bodycls
looking for.
javascript css extjs
Comments
Post a Comment