EXT*_*bie 5 extjs button tooltip extjs3
我通过调用向中心区域的选项卡面板添加了一个按钮
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
});
Run Code Online (Sandbox Code Playgroud)
西部地区有两个带有手风琴布局的单选按钮,标有"内部"和"外部".我希望通过捕获单选按钮单击动态更改工具提示.
我可以捕获单选按钮单击,当我相应地设置按钮的工具提示时,
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');
当点击外部时.