Hybrid View

  1. #1
    Ext GWT Premium Member
    Join Date
    Sep 2011
    Posts
    25
    Vote Rating
    -1
    alona.oz has a little shameless behaviour in the past

      0  

    Default Unanswered: Copy text from internal div of List

    Unanswered: Copy text from internal div of List


    Hi,

    I have a List component and I need to be able to copy text from its internal elements. The List is just read only simple view and it doesn't need any selection abilities. Currently there is no possibility to copy, I think it relates to to List row selection that takes the click event. I tried to disable selection mechanism but with no success.

    Please suggest how to solve...

    10x

  2. #2
    Sencha User
    Join Date
    Feb 2011
    Location
    Düsseldorf, Germany
    Posts
    584
    Answers
    34
    Vote Rating
    32
    Kurt001 has a spectacular aura about Kurt001 has a spectacular aura about

      0  

    Default Data Element

    Data Element


    if you need the full text you may take it from the data element.
    On click you receive the index and you may use the index on the data element for the text.

  3. #3
    Ext GWT Premium Member
    Join Date
    Sep 2011
    Posts
    25
    Vote Rating
    -1
    alona.oz has a little shameless behaviour in the past

      0  

    Default


    Thanks for response!
    But this is not good enough, I want to allow regular copy/paste feature...

  4. #4
    Sencha User
    Join Date
    Feb 2011
    Location
    Düsseldorf, Germany
    Posts
    584
    Answers
    34
    Vote Rating
    32
    Kurt001 has a spectacular aura about Kurt001 has a spectacular aura about

      0  

    Default Please explain

    Please explain


    Please explain what you want to do a bit more in detail.

    What I understand is, that you want to copy text from one listitem into another listitem.
    Or is it from list into a form?

    Please be more specific

  5. #5
    Ext GWT Premium Member
    Join Date
    Sep 2011
    Posts
    25
    Vote Rating
    -1
    alona.oz has a little shameless behaviour in the past

      0  

    Default


    I want to allow copy from list element to clipboard of device, allow the user to re-use the text

  6. #6
    Sencha User
    Join Date
    Feb 2011
    Location
    Düsseldorf, Germany
    Posts
    584
    Answers
    34
    Vote Rating
    32
    Kurt001 has a spectacular aura about Kurt001 has a spectacular aura about

      0  

    Default How to put data in list

    How to put data in list


    But how do you put the data in the list.

    Are you using a store to fill the list, or are you using a json?

    How will the user tell you that he wants to get the data. Is he clicking on the list item, do you have a button per list item with the copy feature...

  7. #7
    Sencha Premium Member dawesi's Avatar
    Join Date
    Mar 2007
    Location
    Melbourne, Australia (aka GMT+10)
    Posts
    1,083
    Answers
    24
    Vote Rating
    44
    dawesi has a spectacular aura about dawesi has a spectacular aura about

      0  

    Default


    only ios and android (native, chrome has it) haven't implemented the clipboard api (seems everyone else has) http://caniuse.com/clipboard

    or if you're wrapping for phonegap/cordova then just use their clipboard plugin (even phonegap build has it)
    Teahouse Training Company
    Official Certified Sencha Trainer

    Australia / New Zealand / Singapore / Hong Kong & APAC



    SenchaWorld.com - Sencha webinars, videos, etc
    SenchaForge.org - (coming soon)
    TeahouseHQ.com - Sencha ecosystem training portal

    Code Validation : JSLint | JSONLint | JSONPLint