Warning: Use of undefined constant Symbol - assumed 'Symbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215 Warning: Use of undefined constant JavaScriptSymbol - assumed 'JavaScriptSymbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215

dojox/grid/enhanced/plugins/GridSource.js

  • Provides:

    • dojox.grid.enhanced.plugins.GridSource
  • Requires:

    • dojo.dnd.Source in common
    • dojox.grid.enhanced.plugins.DnD in common
  • dojox.grid.enhanced.plugins.GridSource

    • type
      Function
    • chains:
      • dojo.dnd.Source: (prototype)
      • dojo.dnd.Source: (call)
    • summary
      A special source that can accept grid contents.
      Only for non-grid widgets or domNodes.
  • dojox.grid.enhanced.plugins.GridSource.accept

    • type
      Array
  • dojox.grid.enhanced.plugins.GridSource.insertNodesForGrid

    • type
      If
    • summary
      you'd like to insert some sort of nodes into your dnd source, turn this on,
      and override getCellContent/getRowContent/getColumnContent
      to populate the dnd data in your desired format.
  • dojox.grid.enhanced.plugins.GridSource.markupFactory

    • parameters:
      • params
      • node
    • type
      Function
  • dojox.grid.enhanced.plugins.GridSource.checkAcceptance

    • parameters:
      • source
      • nodes
    • type
      Function
  • dojox.grid.enhanced.plugins.GridSource.sourcePlugin

  • dojox.grid.enhanced.plugins.GridSource.onDraggingOver

    • type
      Function
  • dojox.grid.enhanced.plugins.GridSource.sourcePlugin._isSource

    • type
      bool
  • dojox.grid.enhanced.plugins.GridSource.onDraggingOut

    • type
      Function
  • dojox.grid.enhanced.plugins.GridSource.onDropExternal

    • parameters:
      • source
      • nodes
      • copy
    • type
      Function
  • dojox.grid.enhanced.plugins.GridSource.getCellContent

    • parameters:
      • grid
      • leftTopCell
      • rightBottomCell
    • summary
      Fill node innerHTML for dnd grid cells.
      sample code:
      var cells = grid.layout.cells;
      var store = grid.store;
      var cache = grid._by_idx;
      var res = "Grid Cells from " + grid.id + ":<br/>";
      for(var r = leftTopCell.row; r <= rightBottomCell.row; ++r){
      for(var c = leftTopCell.col; c <= rightBottomCell.col; ++c){
      res += store.getValue(cache[r].item, cells[c].field) + ", ";
      }
      res = res.substring(0, res.length - 2) + ";<br/>";
      }
      return res;
    • type
      Function
  • dojox.grid.enhanced.plugins.GridSource.getRowContent

    • parameters:
      • grid
      • rowIndexes
    • summary
      Fill node innerHTML for dnd grid rows.
      sample code:
      var cells = grid.layout.cells;
      var store = grid.store;
      var cache = grid._by_idx;
      var res = "Grid Rows from " + grid.id + ":<br/>";
      for(var i = 0; i < rowIndexes.length; ++i){
      var r = rowIndexes[i];
      res += "Row " + r + ": ";
      for(var j = 0; j < cells.length; ++j){
      if(!cells[j].hidden){
      res += store.getValue(cache[r].item, cells[j].field) + ", ";
      }
      }
      res = res.substring(0, res.length - 2) + ";<br/>";
      }
      return res;
    • type
      Function
  • dojox.grid.enhanced.plugins.GridSource.getColumnContent

    • parameters:
      • grid
      • colIndexes
    • summary
      Fill node innerHTML for dnd grid columns.
      sample code:
      var cells = grid.layout.cells;
      var res = "Grid Columns from " + grid.id + ":";
      for(var i = 0; i < colIndexes.length; ++i){
      var c = colIndexes[i];
      res += (cells[c].name || cells[c].field) + ", ";
      }
      return res.substring(0, res.length - 2);
    • type
      Function
  • dojox.grid.enhanced.plugins.GridSource.onDropGridCells

    • parameters:
      • grid
      • leftTopCell
      • rightBottomCell
    • type
      Function
  • dojox.grid.enhanced.plugins.GridSource.onDropGridRows

    • parameters:
      • grid
      • rowIndexes
    • type
      Function
  • dojox.grid.enhanced.plugins.GridSource.onDropGridColumns

    • parameters:
      • grid
      • colIndexes
    • type
      Function
  • dojox.grid.enhanced.plugins

    • type
      Object
  • dojox.grid.enhanced

    • type
      Object
  • dojox.grid

    • type
      Object
  • dojox

    • type
      Object