简体   繁体   中英

highlight item in spark list

I have two spark lists and want to drag items from one list to the other. When im dragging an item and over the other list item, i want the target item to change the background coloer.

Basically instead of showing the black line indicating that I will drop between elements, I want to see the target item highlight.

Thanks in advance.


Edit: Something that would look similar to this drag and drop: 将项目拖到列表
(source: blogspot.com )

I would ask you to point out a UI precedent where this is standard / expected behavior.

When you drag an itemA onto itemB; and itemB is highlighted somehow, it usually means you're dragging into ItemB. But, in this case you are not dragging item from List1 into the item from List2. [I assume at least].

You'd have to override the list code drag and drop features to make this happen.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM