correct way to add js in sencha architect (ExtJS)? -
this thread works well in mobile app in desktop app seem cant add reference external js in extjs desktop app.
the instructions sencha somehow don't correspond or doesn't work me when try , follow them. so, selecting resources->library , can see attribute include javascript (ticked) , library base path:/ext.
the js file using use in phone app , fine - added app.json in , compiling app copies file on target , defers loading.
in case sa not seeing file copied target - nor can follow instructions sa 3 documented. way can add external js dropping onto filesystem ext folder manually. again, doesn't appear in target , errors when run app with
uncaught referenceerror: hex_sha512 not defined
this js has been used in other apps, proved , tested relates sa or wrong use of sa.
the proper way add resource in sencha architect, regardless of framework, add js resource.
this done hitting ctrl-t (or cmd-t on mac) , typing "js resource" (or shortened string thereof autocompletion)...
alternatively, can use toolbox, click "resources", , drag out or double click "js resource"
these different user interfaces accomplish same task.
once you've added js resource using 1 of above methods, need set url in config pane (at bottom right unless you've configured architect swap left , right panes)...
the url set relative project folder. if copy js file project root under folder called "lib" example, you'd set url config "lib/foo.js" - foo.js filename, of course.
hope helps!
Comments
Post a Comment