What is an extjs sandbox sandbox?

I was interested to learn about extjs sandbox, but could not find much about it on the Internet. Can anyone say or point out any relevant resource regarding what an isolated extjs sandbox is and how it works. Thanks in advance!

+6
source share
1 answer

The Ext JS sandbox is just another name in the top-level namespace.

Usually all Ext JS code falls under the namespace "Ext", so you should refer to classes like Ext.Element, Ext.MessageBox, etc. The sandbox (in particular the Ext JS 4 isolated sandbox) instead uses "Ext4" (as in Ext4.Element), so you can use several versions of Ext JS side by side without worrying about name collisions. Sometimes they play well together, often when they are not, so you cannot add Ext4.Elements to Ext.Panel (at least not without much effort).

The Ext JS distribution includes files listed as a sandbox that you would specify in your project along with standard files.

Check out the Sandbox Example on the Ext JS Docs page to see it in action. However, you need to use your browser debugger to view the source and scripts.

+8
source

Source: https://habr.com/ru/post/908904/


All Articles