更新工具栏制作麻烦开关卡sencha
我的网络应用程序中有一些卡片,每张卡片都有一个顶部工具栏。 更新其中一张后,我在切换卡时遇到问题(卡住了)。
我给每个工具栏一个 id,并使用以下代码进行更新:
Ext.getCmp('cashiertoolbar').update("<div><img style=\"margin-top:5px;\"
src=\"images/[email protected]\" width=106px height=33px/>   <img style=\"margin-top:0px;
margin-left:-15px;\" src=\"images/nav_line.png\"/></div><div style=\"display:run-in;margin-
top:-48px;margin-left:100px;color:#516691;font-weight:bold;\">  Hi"+ " "+ firstname + " " +
lastName+ "." +"</div><div style=\"margin-top:-5px;margin-left:110px;display:run-in;color:#FFF;
\">Balance</div><div style=\"display:run-in;\"></div><div style=\"display:run-in;margin-top:-22px;
margin-left:173px;\"><img src=\"images/[email protected]\" width=143 height=22\"/></div><div
style=\"display:run-in;font-size:12px;margin-top:-24px;margin-left:185px;
\">"+CurrencySymbol+balance+"</div>");
当我切换卡片几次时,它就解决了。 感谢您的帮助,
I have cards in my web app that each one of them has a top toolbar.
After I update one of them, I have a problem to switch cards (it's stuck).
I gave each toolbar an id and I'm Updating by using the following code:
Ext.getCmp('cashiertoolbar').update("<div><img style=\"margin-top:5px;\"
src=\"images/[email protected]\" width=106px height=33px/>   <img style=\"margin-top:0px;
margin-left:-15px;\" src=\"images/nav_line.png\"/></div><div style=\"display:run-in;margin-
top:-48px;margin-left:100px;color:#516691;font-weight:bold;\">  Hi"+ " "+ firstname + " " +
lastName+ "." +"</div><div style=\"margin-top:-5px;margin-left:110px;display:run-in;color:#FFF;
\">Balance</div><div style=\"display:run-in;\"></div><div style=\"display:run-in;margin-top:-22px;
margin-left:173px;\"><img src=\"images/[email protected]\" width=143 height=22\"/></div><div
style=\"display:run-in;font-size:12px;margin-top:-24px;margin-left:185px;
\">"+CurrencySymbol+balance+"</div>");
When I switch cards couple of times it's worked out.
Thanks for any help,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了答案:
只需更改 getCmp 即可获得...
祝你好运!
I found the answer:
Just change the getCmp to get...
Good luck!