Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extjs 6.0 - Building app without cmd

now i am trying to learn about sencha extjs new version. Does anyone know any tutorial of how to make a project without sencha cmd?

Thank you in advance.

like image 695
sonseiya Avatar asked Nov 04 '15 18:11

sonseiya


People also ask

Is ExtJS single page application?

Ext JS by Sencha is becoming the ExtJS is a rich, compelling and intuitive open source framework best suited for building single page applications. It offers very rich set of UI components and thus giving a tough competition to other JavaScript frameworks like AngularJS or ReactJS.

Is ExtJS free to use?

It is a free, limited commercial use license, with robust Ext JS Frameworks, hundreds of modern components, a material theme, and more to develop stunning-looking apps.

Is ExtJS open source?

ExtJS 4.0. 2a is open source under GPL v3. 0. You may fork and distribute the fork accordingly.


1 Answers

@sonseiya First all.. Sencha CMD it is most usefull tool for sencha apps, not only will generate you app, your MVC structure,models,stores but also will compile for IOS, Android, WINDOWS, focus on use "Universal App" way, sencha CMD will put all your code in one single file and will be ofuscated, cool ha!

Now.. to answer your question, yes it is posible, sencha cmd uses the microloader an script to do smart stuf based on you browser.. but for your case, you need to use old way: ext.onready and create script tags on your html header.. for example:

<html>
<head>
    <title>Ext JS </title>

    <link rel="stylesheet" type="text/css" href="path/ext-all.css" /> 
    <script type="text/javascript" src="path/ext-all.js"></script>
</head>
<body>
    <script type="text/javascript">
    Ext.onReady(function() {
        Ext.Msg.alert('Alert');     
    });
    </script>
</body>
</html>

Note: you must to use explicity requires because there are not microloader that is in charge of read all dependencies.

like image 168
jamesjara Avatar answered Oct 01 '22 10:10

jamesjara