googlearchive / core-list

Polymer virtualized list element
25 stars 23 forks source link

Consider supporting data values that are not objects #14

Open nevir opened 10 years ago

nevir commented 10 years ago

implicit value key?

kennyjwilli commented 10 years ago

I second this.

kevinpschaaf commented 10 years ago

Can I clarify the concept-- this is for something like arrays of strings or numbers, like data = ['foo', 'bar', 'baz'] or data = [1,2,3,4]?

This will be mostly solved with the changes already happening on work-in-progress branch https://github.com/Polymer/core-list/tree/2way-improved. The only problem is the current use of WeakMap to have fast selection lookup, since it doesn't support non-objects as keys... will need to figure that out.

kennyjwilli commented 10 years ago

Yes this is exactly what I am talking about at least. I currently have an Array of Arrays, [["a" "b"] ["c" "d"] ["e" "f"]]. Same thing essentially.