logicmedia
19 Jul 2010, 10:46 PM
Hi all,
I have a simple Panel with a tabbar and would really like to get a custom icon in the bar. The code looks like this:
<style>
.overview {
background-image: url(/images/buttons/overview.png) no-repeat !important;
}
</style>
<script type="text/javascript">
Ext.setup({
icon: 'icon.png',
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
glossOnIcon: false,
onReady: function() {
var tabpanel = new Ext.TabPanel({
tabBar: {
dock: 'bottom',
layout: {
pack: 'center'
}
},
fullscreen: true,
items: [{
id: 'id_btn',
title: 'Test',
html: 'lorem lipsum...',
iconCls: 'overview'
}]
});
}
});
</script>
Unfortunatly the icons does not show - all I get is a blue square!!
Any ideas on how to do this?
Regards,
Thomas
I have a simple Panel with a tabbar and would really like to get a custom icon in the bar. The code looks like this:
<style>
.overview {
background-image: url(/images/buttons/overview.png) no-repeat !important;
}
</style>
<script type="text/javascript">
Ext.setup({
icon: 'icon.png',
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
glossOnIcon: false,
onReady: function() {
var tabpanel = new Ext.TabPanel({
tabBar: {
dock: 'bottom',
layout: {
pack: 'center'
}
},
fullscreen: true,
items: [{
id: 'id_btn',
title: 'Test',
html: 'lorem lipsum...',
iconCls: 'overview'
}]
});
}
});
</script>
Unfortunatly the icons does not show - all I get is a blue square!!
Any ideas on how to do this?
Regards,
Thomas