I have this extjs container
var cont = Ext.create('Ext.container.Container',{
cls: 'myClass1',
id: myId,
flex: 1
});
How can I change the cls property to ‘MyClass2’ at run time with javascript/extjs code?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If
SENSE.ui.createContainermake anExt.container.Containerbase class, then you can useremoveClsmethod, as follows:For more info: Ext.container.Container.removeCls