Can anyone show how I can set the alignment of the title in a title bar to left justified. I'm currently trying this but it isn't working:
var p = Ext.create('Ext.Panel', {
items: [
{
xtype: 'toolbar',
docked: 'top',
title: 'my title',
style: {
'text-align':'left'
}
}
]
});
Ext.Viewport.add(p);
2nd attempt: Not now able to have the title left and the toolbar button right!
var p = Ext.create('Ext.Panel', {
items: [
{
xtype: 'toolbar',
docked: 'top',
layout: {
pack: 'end'
},
title: {
title: 'mytitle',
style: {
'text-align':'left'
}
},
items: [
{
xtype: 'button',
text: 'mybutton',
align: 'right'
}
]
}
]
});
Ext.Viewport.add(p);