Feb 17, 2015, 10:22 PM
[CLOSED] add cls class to Window created in javascript ext 2.5.2
I am trying to add a cls class to a window created via javascript. Please see below, if I add a cls to window, it does not display. Can you please point me in the right direction to add a custom css to the window. Thanks
label {
font-size: .7em;
display: block;
}
.chartPopup {
font-size : 1em;
color:#111010;
padding-top: 8px;
position : absolute;
text-align : left;
vertical-align : middle;
visibility : hidden;
z-index : 9999999;
}
var config = { title: 'Additional Summary', height: popupHeight, width: 900}
var win = new Ext.Window(Ext.apply({
renderTo: Ext.getBody(),
resizable: true,
frame: true,
modal: true,
closable: true,
cls: "label chartPopup", // ==> this line causes the window to not display
closeAction: "close",
html: "HELLO",
}, config));
win.componentCls = "label chartPopup"; // ==> This does not do anything
win.show();
Last edited by fabricio.murta; Feb 17, 2015 at 11:21 PM.
Reason: [CLOSED]