Note that there are some explanatory texts on larger screens.

plurals
  1. POLabel on HeaderIcon in HeaderControls
    primarykey
    data
    text
    <p>I want to put a label next to an icon so user can better understand what is this clickable icon for.<br/> This icon appear in the HeaderControl of a com.smartgwt.client.widgets.Window</p> <pre class="lang-java prettyprint-override"><code>String promptNewThing = "Add some thing"; String imgNewThingText = "../servlet/servletOperation?cmd=Icon&amp;time=" + System.currentTimeMillis() + "&amp;text=" + promptNewThing; HeaderIcon iconNewThing = new HeaderIcon("buttons/new.png"); HeaderIcon iconNewThingLabel = new HeaderIcon(imgNewThingText); newThing = new HeaderControl(iconNewThing, clickHandlerNewThing); newThing.setPrompt(promptNewThing); newThingLabel = new HeaderControl(iconNewThingLabel, clickHandlerNewThing); newThingLabel.setPrompt(promptNewThing); setHeaderControls(HeaderControls.HEADER_LABEL, NewThing, NewThingLabel, HeaderControls.MINIMIZE_BUTTON, HeaderControls.MAXIMIZE_BUTTON, HeaderControls.CLOSE_BUTTON); </code></pre> <p>For information : In this code, Servlet URL return an image made from the text <code>promptNewThing</code><br/> But iconNewThingLabel is an Icon which has the width of an Icon, too small.</p> <p>The result of this code : <img src="https://i.stack.imgur.com/aS626.png" alt="Result with icon from text is to small"> The small white square we can see between first Icon is <code>newThingLabel</code>. </p> <p><strong>Is there a way to add a label at the right of an HeaderIcon ?</strong></p> <p>For example I would to have something like :</p> <p><img src="https://i.stack.imgur.com/HcgLO.png" alt="Icon and Label"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload