Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    mouse select on the label widget

    It seems that the text inside the smart gwt label widget cannot be selected (or copied) with mouse.

    Label label = new Label("this text cannot be copied with mouse");

    We use the Label widget a lot. Is there any way to make the text selectable?

    #2
    Set the canSelectText property to true.
    Originally posted by jaykay
    We use the Label widget a lot. Is there any way to make the text selectable?

    Comment


      #3
      Mouse select in Labels not working in Chrome

      Hi,
      I am not able to select contents from Label in smartclient in chrome latest build (from 24 - 26.0.1410.43 m). I have set the canSelectText and canFocus properties to true. Here is my code

      isc.Label.create({
      height: 30,
      padding: 10,
      align: "center",
      valign: "center",
      wrap: false,
      canSelectText: true,
      canFocus: true,
      icon: "icons/16/approved.png",
      showEdges: true,
      contents: "<i>Approved</i> for release"
      })

      Thanks,
      Shankar

      Comment

      Working...
      X