PDA

View Full Version : [OPEN] [4.2.0] Unable to set Icon when using a panel with glyphs



Dumbledore
1 Apr 2013, 11:01 PM
Hi there,

when using a panel with a glyph config, there will be no image rendered inside the header.
So its not possible to change the Icon via setIcon() cause the image is missing.

I think this is a bug..



var mypanel = Ext.create('Ext.panel.Panel', {
title: 'Hello',
glyph: 'xf0ac@FontAwesome',
width: 200,
html: '<p>World!</p>',
renderTo: Ext.getBody()
});

mypanel.setIcon('http://www.sencha.com/favicon.ico'); // this will not work!

mitchellsimoens
2 Apr 2013, 5:37 AM
Thanks for the report! I have opened a bug in our bug tracker.

dongryphon
12 Apr 2013, 12:56 PM
Thanks for feedback. I just wanted to mention that we are tracking this, but it is filed as a Feature Request.

This config is similar to other configs that are processed during render in that we do not currently support dynamic change. Perfectly valid request and all - just wanted to pass along the update. :)