Search
DomRenderer.onSelect Method
See Also
 






Implement this method in a derived class to handle selection.

Namespace: MindFusion.DataViews
File: DomRenderer.js

 Syntax

JavaScript  Copy Code

function onSelect ()

 Example

The following code implements the onSelect method in a custom renderer class:

JavaScript  Copy Code

class MyRenderer extends DomRenderer
{

   /**
   * DomRenderer.onSelect override.
   */
   function onSelect() {
      var cells = this.grid.selection.cells;
      var rows = this.grid.selection.rows;
      if (cells.length) {
   for (var cell of cells) {
       var rowIndex = this.grid.getKeyRow(cell.row);
              .......................
     }
 }
   }
}

 See Also