-
18 Nov 2012 3:52 AM #1
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
-
18 Nov 2012 6:35 AM #2
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.
-
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
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
-
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
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...
-
20 Nov 2012 12:52 AM #7
I use store to fill the List. User will click long click and copy/paste panel of device (not mine) will open. He will copy in regular way (in Android system he will select using text selection Android tool, in Chrome run from desktop he will hold left mouse button and drag to select), and paste in any other place at device.
Is this possible?
10x
-
20 Nov 2012 1:26 AM #8
@Alona.oz
Perhaps you can use a <input type="text"> component in your Lists itemTpl-configuration ?
I haven't tested this but I think users can select and copy paste text like this.
-
23 Nov 2012 5:04 AM #9
warren is right.
You might use a disabled inputfield and still listen to the tap event. On tapstart you could enable the input field to allow copying and the disable it again.
-
23 Nov 2012 5:35 AM #10
The reason for not being able to mark the text from the list items is, that they have the CSS-property
is set to "none".Code:-webkit-user-select
Maybe you can try to override this property in your own CSS-class and add it to your list's items.
You should try
orCode:-webkit-user-select: auto !important;
Don't know whether this works, I didn't test itCode:-webkit-user-select: text !important;

Best regards,
Schildi


Reply With Quote