18 Nov 2012 3:52 AM #1
Unanswered: Copy text from internal div of List
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...
18 Nov 2012 6:35 AM #2
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.
18 Nov 2012 9:09 AM #3
Thanks for response!
But this is not good enough, I want to allow regular copy/paste feature...
18 Nov 2012 9:23 AM #4
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
18 Nov 2012 9:28 AM #5
I want to allow copy from list element to clipboard of device, allow the user to re-use the text
18 Nov 2012 10:39 AM #6
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...
23 Jan 2014 5:00 PM #7
- Join Date
- Mar 2007
- Melbourne, Australia (aka GMT+10)
- Vote Rating
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)