AesonErryl
3 Oct 2012, 10:26 PM
I want to change the fonts of ALL components inside just my panel; this inlcudes the labels, textfields, grids and so on - anything inside the panel. How can I accomplish this using the 'cls' config?
In my JS file, I have:
Ext.define('Tools.view.TimeTracker', {
extend: 'Ext.container.Viewport',
alias: 'widget.viewTimeTracker',
initComponent: function () {
Ext.apply(this, {
region: 'center',
layout: 'fit',
items: [{
xtype: 'panel',
name: 'pnlTimeTracker',
cls: 'pnlTimeTracker', //this is the CLS config for the panel
layout: 'card',
activeItem: 1,
in my CSS file, I have:
.pnlTimeTracker {
font-family: Segoe UI;
}
I have tried this but it does not work.
In my JS file, I have:
Ext.define('Tools.view.TimeTracker', {
extend: 'Ext.container.Viewport',
alias: 'widget.viewTimeTracker',
initComponent: function () {
Ext.apply(this, {
region: 'center',
layout: 'fit',
items: [{
xtype: 'panel',
name: 'pnlTimeTracker',
cls: 'pnlTimeTracker', //this is the CLS config for the panel
layout: 'card',
activeItem: 1,
in my CSS file, I have:
.pnlTimeTracker {
font-family: Segoe UI;
}
I have tried this but it does not work.