Mapping selection
The sample shows the use of method mapSelection(). The method allows you to get the current value of the selected cell and return some other value for it. If multiple cells are selected, the method is called for each of them by turn. Note, to work with a certain cell you can use method mapCells().
Click on any cell. Once some cell is selected, click on the related 'mirror' button.

Cell selection

Row selection

Block selection