I am new to extjs. I am using Extjs 4 in my project. When ext-all.js is loaded, it automatically adds classes to the tag <body>. and all my other CSS styles are changed by extjs styles. I found in the document that to set the Ext.scopeResetCSS property to true, so I am adding as shown below.
Ext.onReady(function(){
new Ext.Component({
scopeResetCSS: true
});
});
but it does not change anything. I still have the same problem.
Is there a way to stop extjs from automatically adding CSS classes to tags? Please, help..
This is my code for creating a multi-line message box.
<link rel="stylesheet" type="text/css" href="components/com_jobs/js/extjs/resources/css/ext-all.css"/>
<script type="text/javascript" src="components/com_jobs/js/extjs/ext-all.js"></script>
<script type="text/javascript">
Ext.require([
'Ext.window.MessageBox'
]);
function removeBid(bidid){
Ext.MessageBox.show({
title: 'Address',
msg: 'Please enter your address:',
width:300,
buttons: Ext.MessageBox.OKCANCEL,
multiline: true,
});
}
</script>
Am I doing something wrong ??? I want extjs to create only its own components. But now extjs styles are the effects of my whole page. Please, help.
Thank.
source