Interface ButtonCellBase.DefaultAppearance.Template

All Superinterfaces:
SafeHtmlTemplates
Enclosing class:
ButtonCellBase.DefaultAppearance<C>

static interface ButtonCellBase.DefaultAppearance.Template extends SafeHtmlTemplates
The templates used by this appearance.
  • Method Details

    • iconContentLayout

      @Template("<div class=\"{0}\" style=\"{1}position:relative;zoom:0;\">{2}{3}</div>") SafeHtml iconContentLayout(String classes, SafeStyles styles, SafeHtml icon, SafeHtml cellContents)
      Positions the icon next to the text. NOTE: zoom:0 is a workaround for an IE7 bug where the button contents wrap even when they do not need to.
    • iconWrapper

      @Template("<div style=\"{0}position:absolute;top:50%;line-height:0px;\">{1}</div>") SafeHtml iconWrapper(SafeStyles styles, SafeHtml image)
      The wrapper around the icon that aligns it vertically with the text.