Friday, March 28, 2014

remote source file in ui:style

Can I use <ui:style src="http://www-c0-css.cc.uga.edu/uga/css/ugastyle-7.css" /> in a uibinder file?  I don't want ugastyle-7.css to be compiled by GWT and transformed into an obfuscated, minimized and optimized version so I can access any styles such as featurecopy defined in ugastyle-7.css like:


<!DOCTYPE ui:UiBinder 
  SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"
>
<ui:UiBinder
  xmlns:ui='urn:ui:com.google.gwt.uibinder'
  xmlns:g='urn:import:com.google.gwt.user.client.ui'
  xmlns:mail='urn:import:com.google.gwt.sample.mail.client'>

  <ui:style src="http://www-c0-css.cc.uga.edu/uga/css/ugastyle-7.css">

  .statusDiv {
    text-align: right;
    margin: 1em;
  }

  .linksDiv {
    text-align: right;
  }

  </ui:style>

  <g:HTMLPanel>
    <div class='{style.logo}'/>

    <div class="{style.statusDiv}">
      <div>
        <b>Welcome back, foo@example.com</b>
      </div>

      <div class='featurecopy' '>
        <g:Anchor href='javascript:;' ui:field='signOutLink'>Sign Out</g:Anchor>
        &nbsp;
        <g:Anchor href='javascript:;' ui:field='aboutLink'>About</g:Anchor>
      </div>
    </div>
  </g:HTMLPanel>
</ui:UiBinder>


Thanks,

Leon

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment