更新工具栏制作麻烦开关卡sencha

发布于 2025-01-07 12:59:16 字数 1257 浏览 3 评论 0原文

我的网络应用程序中有一些卡片,每张卡片都有一个顶部工具栏。 更新其中一张后,我在切换卡时遇到问题(卡住了)。

我给每个工具栏一个 id,并使用以下代码进行更新:

Ext.getCmp('cashiertoolbar').update("<div><img style=\"margin-top:5px;\"  
src=\"images/[email protected]\"  width=106px height=33px/> &nbsp <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;\">&nbsp 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时光匆匆的小流年 2025-01-14 12:59:16

我找到了答案:
只需更改 getCmp 即可获得...
祝你好运!

I found the answer:
Just change the getCmp to get...
Good luck!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文