Hi Mr. Tatu. Thank you for this add-on it is very useful. I want to change something in the selection behavior. I only want multi selection when pressing shift or ctl buttons. It is necessary for me to be able to only select one item when I click the left mouse button. (If one item is selected and then another is selected, the first one should be deselected.) Is that possible somehow?
It is hard for me to understand why. The value of the component is a Set, so selection of multiple items should be possible. Why to make UX of the component worse than it should be by allowing to move only one item at the time?
In vaadin 8 we were able to achieve multi selection in TwinColumnSelect by either pressing SHIFT or CTRL buttons (of course this is desirable and works perfectly in this add-on). However, by single-clicking the left mouse button we were able to only select one item. After clicking on one item all other selections were being removed. That is the behavior I am trying to achieve in vaadin 23(single selection with left mouse button just like vaadin 8).
I see. I can't make it one-to-one with Vaadin 8 version, as the architecture of the component is quite different, but check the version 2.4.0 and use setPickMode(PickMode.SINGLE); That introduces different selection behavior. Hopefully it is close enough.
Apart from that which doesn't quite cover my requirements but I will try to make some changes, it seems that after version 2.2.1, moving items to right column and then back to left, the ordering in not being maintained. Why is that?