ExtJS: try to be "clean" or mix with HTML?

When creating a new application using ExtJS, it is preferable to use as little HTML as possible, i.e. only a minimal HTML template file that loads CSS and Javascript files and does most of the things in JavaScript using ExtJS layouts, controls, etc .; or is it preferable to create plain HTML files with a little ExtJS here and there?

+6
extjs
source share
2 answers

The widget structure is oriented towards minimal HTML. Building a rich application using Ext JS is much more like building a desktop application than building a web page. It just happens in JavaScript and works in the browser.

Start with the HTML template file, then create the application only in .js files. Communicate with your web service to use data using REST and JSON.

+4
source share

You can do this, although Ext is really more focused on creating a user interface in code. You can use Ext Core just like jQuery to have “a little here and there,” but as soon as you make a serious development of the widget / user interface, you will inevitably spend much more time on your .js files. Some of the widgets support instantiation from markup, but not all (and it was never built from scratch to be based on markup, such as Dojo, and possibly some others). A.

+2
source share

All Articles