PDA

View Full Version : Library files to import



anajafi
3 Sep 2013, 12:51 PM
Hello all,

I am a noob at coding in EXT JS. Could someone provide the code to import the necessary libraries? I have tried many different files but nothing has worked.

scottmartin
4 Sep 2013, 6:05 AM
You simply include the JS file in your HTML and you are ready to use.



// css
<link rel="stylesheet" type="text/css" href="../../extjs4/resources/css/ext-all.css"/>
// extjs API
<script type="text/javascript" src="../../extjs4/ext-all.js"></script>
// your code
<script type="text/javascript" src="app.js"></script>


// more avanced ..
If you use Sencha Cmd, it will load only the required classes for production release
http://docs.sencha.com/extjs/4.2.1/#!/guide/command

Scott

anajafi
5 Sep 2013, 8:54 AM
Got it Thanks!