Selection
Selection lives on the Shape via its selection property, following the
same model as CxJS widgets such as Grid, List and Marker. Provide a
record binding so the selection can identify each shape; a KeySelection
keyed by id is the usual choice. Shapes that bind to the same selection
path share a single selection.
- Click a shape to select it.
- Ctrl+Click to toggle a shape in and out of the selection.
- Shift+Click to extend the selection (when
multipleis set).
The selected keys are written to the store at the bound path
(selection in this example).