PDA

View Full Version : default button change with image in extjs



please
3 Sep 2012, 5:00 AM
hi all,
i have home image, i have to make background image as home for the button i tried to use style but i am getting default button and home image both

xtype:'button',
id:'homeBtn',
x:15,
y: 7,
style:'background-image:url(resources/images/home.png);height:60px;no-repeat;'

please help me once i click that home page i have a functionality to go home page that i have already its working also with button, i need instead of button home image

sword-it
3 Sep 2012, 5:43 AM
Hi,

Try this code-



xtype:'toolbar',
items:[
text:'button',
id:'homeBtn',
x:15,
y: 7,
style:'background-image:url(resources/images/home.png);height:60px;no-repeat;'
]

please
3 Sep 2012, 9:40 PM
sorry its not working, i am able to get background image with xtype:button and style but thing is when i click the home image down of image one more image i am getting that is home image half

please
3 Sep 2012, 11:17 PM
please tell me i am getting home image background and on top of this button so i need only home image not default button also .is there any way to change xtype:button default image to home image