i want to change css vars of extjs -
i want set back-ground color of panel using $panel-body-background-color. how can set in panel config ? getting error in following peace of code.
here code
var mainpanel = ext.create('ext.form.panel', { renderto: ext.get('main'), xtype: 'form', title: 'user registration', $panel-body-background-color : black /style:{'$panel-body-background-color:#64fe2e'} });
$panel-body-background-color not component configurations, sass variables. defined , configured outside of app code. see link below quick tutorial on extjs theming. powerful can overwhelming @ first.
http://docs.sencha.com/extjs/4.2.1/#!/guide/theming
you should using sencha command make work properly, if you can explore packages folder see themes , how set up. can use sencha command create new theme:
sencha generate theme my-custom-theme
Comments
Post a Comment