css - Adding icon to Extjs toolbar -


i trying add icon toolbar (arbitrary - not associated button).

in css define url :

.mycoollookingicon {     background-image: url('../ext-theme-gray/images/grid/columns.gif'); } 

and works fine if setting icons buttons using iconcls.

i icon in label or image

i have tried :

            xtype: 'label',             iconcls: 'mycoollookingicon ' 

and

            xtype: 'image',             html: '<img class="mycoollookingicon "/>' 

but doesn't seem work in either case.

this 1 of way of achieving want (not using iconcls)

xtype:'label', html: '<img src=\"path_to_icon\">' 

try this:

 xtype:'label',  html: '<img class="classname" width="20" height="20">' 

giving width , height, makes work.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -