LayoutDialog, toolbar and text/images - Ext JS

Hi I am doing a LayoutDialog with a toolbar if I set this css don't appear right the text and images in the buttons

paging.add({
text: 'Edit',
cls: 'x-btn-text-icon tbEdit',
tooltip: 'Edit Current Record',
handler: this.onEdit.createDelegate(this)
});

in css:

.tbEdit .x-btn-text {
BACKGROUND-IMAGE: url(../../images/edit16.gif)
}

which css I have to use in toolbar inside a LayoutDialog for appear right text and images?

kind regards
Frank
Reply With Quote
  # 2  
Old 03-06-2007, 09:33 AM
Default

Try

.tbEdit .x-btn-text-icon {
background-image: : url(../../images/edit16.gif)
}
Reply With Quote
  # 3  
Old 03-06-2007, 11:03 AM
Default

Animal from inside a LayoutDialog don't appear in the toolbar buttons the image using


.tbEdit .x-btn-text-icon {
background-image: : url(../../images/edit16.gif)
}


I set it and appear the text and image (text align left and then the image), it appear ok in IE6 but in FF appear the text on image, any advice please

.tbEdit .x-btn-text{
background-image: url('../../images/edit16.gif');
background-position: 0px 0px;
background-repeat: no-repeat;
padding-left:18px;
padding-top:1px;
width:auto;
display:block;
}


kind regards
Frank
Reply With Quote
  # 4  
Old 03-06-2007, 11:19 AM
Default

You shouldn't need to do all that. Text+image buttons are supported.

Here's how I create one:

    fcl.widget.pageToolbar.addButton({
    	id: 'home-btn',
    	cls:'x-btn-text-icon home-button',
    	text: 'Home',
    	handler: fcl.widget.setLocation.createCallback("/myHome.jsp")
    });
with

.home-button .x-btn-text {
	background-image: url("../images/home.gif");
}
Reply With Quote
  # 5  
Old 03-06-2007, 12:54 PM
Default

Animal how you wrote it work fine to me too, but in this case the toolbar don't is inside a LayoutDialog when the toolbar is inside LayoutDialog

.home-button .x-btn-text {
background-image: url("../images/home.gif");
}


don't work.

the example that you send me is using LayoutDialog?

kind regards
Frank
Reply With Quote
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值