【发布时间】:2010-12-08 13:44:48
【问题描述】:
我通过调用在中心区域的标签面板中添加了一个按钮
var add = tabSelection.addButton({
id : 'add',
text : 'Add',
hidden : true,
tooltip : 'Please highlight the correct value and click Add to create new contact',
handler : addContact
});
在西部区域有两个单选按钮,分别标记为“内部”和“外部”。我希望通过捕获单选按钮单击来动态更改工具提示。
我能够捕获单选按钮的点击,当我相应地设置按钮的工具提示时,
add.setToolTip('Please highlight the correct value and click Add to create new internalcontact'); 如果点击内部客户端。
add.setToolTip('Please highlight the correct value and click Add to create new external contact'); 点击外部时。
【问题讨论】:
-
您能否改写一下或提供更多信息?很难确定您是否在这里提出问题。
标签: button extjs tooltip extjs3