Secha ExtJs workspace and multiple pages(apps)

天大地大妈咪最大 提交于 2019-12-12 03:37:08

问题


I understand how to create and use multiple pages(or apps) within a workspace and build them. I am kind of confused about how do you make these multiple apps talk to each other ?

lets say I have two apps in my workspace - App1 and App2.

I can use routing and make apps talk to each other if the value is simple enough(like a user id).

What If i have to send multiple id's or data from App1 to App2 ?


回答1:


I think you have a few options available.

  • URL Parameters that you parse when instantiating the second application: http://example.com/app2.html?one=1

  • Anchor in the location: http://example.com/app2.html#one:1

  • If the applications are hosted on the same domain, you can use something like SessionStorage or LocalStorage (provided they are available to the client)

  • Set a cookie




回答2:


You can add and remove cards panels dynamically in one page without providing 2 or more pages.The sencha app is designed for single page app.



来源:https://stackoverflow.com/questions/30197109/secha-extjs-workspace-and-multiple-pagesapps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!