PDA

View Full Version : Ext Designer with css



yugikhoi
2 Sep 2010, 7:38 AM
Hi,

How can i embed my CSS file into the project?

Thanks,

jarrednicholls
3 Sep 2010, 12:21 AM
At this time it is not possible to embed your CSS source file(s) into a Designer project. This must be done manually after you export your project.

xaff13
12 May 2011, 9:49 AM
Hello, is it still impossible now ?

If yes will it be ?

tigerjp
20 May 2011, 9:54 AM
MyViewport = Ext.extend(MyViewportUi, {
initComponent: function() {
MyViewport.superclass.initComponent.call(this);

/* app my css */
var cs = document.createElement("link");
cs.rel = "stylesheet";
cs.href = "./css/style.css"; // Please match it to your css file path.
document.getElementsByTagName('head')[0].appendChild(cs);
}
}