How to get multiple node data using mouse selection

How to get selected nodes data and event through mouse selection ?

The standard configuration of each Diagram has a DragSelectingTool that allows the user to draw that magenta box to select the nodes and links within the rectangle upon mouse-up. http://gojs.net/latest/intro/tools.html and http://gojs.net/latest/api/symbols/DragSelectingTool.html

You can then get the selected parts in the Diagram.selection collection. http://gojs.net/latest/api/symbols/Diagram.html#selection and http://gojs.net/latest/intro/collections.html