1. #1
    Ext User
    Join Date
    Apr 2008
    Posts
    13
    Vote Rating
    0
    eldimo is on a distinguished road

      0  

    Default Bug? Or is this a feature?

    Bug? Or is this a feature?


    How come I cannot select a ContentPanel title so that I can copy/paste the text?

    It would be very helpful in the application we are building...

  2. #2
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    Same reason you can't copy/paste a standard UI window title bar text.

    If you need to copy/paste some text, perhaps a label or textfield is the right UI widget to use.

    The title bar in the contentpanel is not designed to be copy/pasted from and I believe all mouse events are being consumed to handle other actions (like drag/drop/resize/click etc).

  3. #3
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    In GXT, all components can have text selection disabled using disableTextSelection. The header in a content panel disables text selection. You can call panel.getHeader().disableTextSelection(false). However, this must be called after the panel is rendered as content panel sets the value when it is rendered.

Thread Participants: 2