This demo demonstrates how to create selectable items. You can either doubleclick the items or use box-selection: start dragging from outside the boxes and include them in the selection. Use right click > view source to see the underlying Javascript code.