Monday, November 5, 2012

Re: Extern library include

You can use <script> and <stylesheet> like this in your module definition:

<script src='http://yui.yahooapis.com/3.7.3/build/yui/yui-min.js' />
<stylesheet src="https://cdnjs.cloudflare.com/ajax/libs/alloy-ui/1.0.1/aui-skin-classic/css/aui-skin-classic-all-min.css"/>

For putting your library's  .js file inside your project's module :
1) create a folder "myPublicFolder" at the same location as your gwt.xml file and copy yourLibrary.js inside
2) add <public path="myPublicFolder"></public> to your gwt.xml
3) add <script src="myPublicFolder/yourLibrary.js"></script> to your gwt.xml

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/LbJ19j9-BzMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment