dojox/grid/_RowSelector.js

  • Provides:

    • dojox.grid._RowSelector
  • Requires:

    • dojox.grid._View in common
  • dojox.grid._RowSelector

    • type
      Function
    • chains:
      • dojox.grid._View: (prototype)
      • dojox.grid._View: (call)
    • summary
      Custom grid view. If used in a grid structure, provides a small selectable region for grid rows.
  • dojox.grid._RowSelector.defaultWidth

    • summary
  • dojox.grid._RowSelector.noscroll

    • summary
  • dojox.grid._RowSelector.padBorderWidth

    • summary
  • dojox.grid._RowSelector.buildRendering

    • type
      Function
    • source: [view]
        this.inherited('buildRendering', arguments);
        this.scrollboxNode.style.overflow = "hidden";
        this.headerNode.style.visibility = "hidden";
    • summary
  • dojox.grid._RowSelector.getWidth

    • type
      Function
    • source: [view]
        return this.viewWidth || this.defaultWidth;
    • summary
  • dojox.grid._RowSelector.buildRowContent

    • type
      Function
    • parameters:
      • inRowIndex: (typeof )
      • inRowNode: (typeof )
    • source: [view]
        var w = this.contentWidth || 0;
        inRowNode.innerHTML = '';
    • summary
  • dojox.grid._RowSelector.renderHeader

    • type
      Function
    • source: [view]
    • summary
  • dojox.grid._RowSelector.updateRow

    • type
      Function
    • source: [view]
    • summary
  • dojox.grid._RowSelector.resize

    • type
      Function
    • source: [view]
        this.adaptHeight();
    • summary
  • dojox.grid._RowSelector.adaptWidth

    • type
      Function
    • source: [view]
      dojo.provide("dojox.grid._RowSelector");
      dojo.require("dojox.grid._View");


      dojo.declare('dojox.grid._RowSelector', dojox.grid._View, {
       // summary:
       // Custom grid view. If used in a grid structure, provides a small selectable region for grid rows.
       defaultWidth: "2em",
       noscroll: true,
       padBorderWidth: 2,
       buildRendering: function(){
        this.inherited('buildRendering', arguments);
        this.scrollboxNode.style.overflow = "hidden";
        this.headerNode.style.visibility = "hidden";
       },
       getWidth: function(){
        return this.viewWidth || this.defaultWidth;
       },
       buildRowContent: function(inRowIndex, inRowNode){
        var w = this.contentWidth || 0;
        inRowNode.innerHTML = '';
       },
       renderHeader: function(){
       },
       updateRow: function(){
       },
       resize: function(){
        this.adaptHeight();
       },
       adaptWidth: function(){
        // Only calculate this here - rather than every call to buildRowContent
        if(!("contentWidth" in this) && this.contentNode){
         this.contentWidth = this.contentNode.offsetWidth - this.padBorderWidth;
        }
    • summary
  • dojox.grid._RowSelector.doStyleRowNode

    • type
      Function
    • parameters:
      • inRowIndex: (typeof )
      • inRowNode: (typeof )
    • source: [view]
        var n = [ "dojoxGridRowbar dojoxGridNonNormalizedCell" ];
        if(this.grid.rows.isOver(inRowIndex)){
         n.push("dojoxGridRowbarOver");
        }
        if(this.grid.selection.isSelected(inRowIndex)){
         n.push("dojoxGridRowbarSelected");
        }
        inRowNode.className = n.join(" ");
    • summary
  • dojox.grid._RowSelector.domouseover

    • type
      Function
    • parameters:
      • e: (typeof )
    • source: [view]
        this.grid.onMouseOverRow(e);
    • summary
  • dojox.grid._RowSelector.domouseout

    • type
      Function
    • parameters:
      • e: (typeof )
    • source: [view]
        if(!this.isIntraRowEvent(e)){
         this.grid.onMouseOutRow(e);
        }
    • summary
  • dojox.grid._RowSelector.scrollboxNode.style.overflow

    • summary
  • dojox.grid._RowSelector.headerNode.style.visibility

    • summary
  • dojox.grid._RowSelector.contentWidth

    • summary
  • dojox.grid

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary