我通过调用在中心区域的选项卡面板中添加了一个按钮
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');
单击外部时。