1 if(!dojo._hasResource["dojox.grid._grid.rowbar"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
2 dojo._hasResource["dojox.grid._grid.rowbar"] = true;
3 dojo.provide("dojox.grid._grid.rowbar");
4 dojo.require("dojox.grid._grid.view");
6 dojo.declare('dojox.GridRowView', dojox.GridView, {
8 // Custom grid view. If used in a grid structure, provides a small selectable region for grid rows.
12 buildRendering: function(){
13 this.inherited('buildRendering', arguments);
14 this.scrollboxNode.style.overflow = "hidden";
15 this.headerNode.style.visibility = "hidden";
18 return this.viewWidth || this.defaultWidth;
20 buildRowContent: function(inRowIndex, inRowNode){
21 var w = this.contentNode.offsetWidth - this.padBorderWidth
22 inRowNode.innerHTML = '<table style="width:' + w + 'px;" role="wairole:presentation"><tr><td class="dojoxGrid-rowbar-inner"></td></tr></table>';
24 renderHeader: function(){
29 adaptWidth: function(){
32 doStyleRowNode: function(inRowIndex, inRowNode){
33 var n = [ "dojoxGrid-rowbar" ];
34 if(this.grid.rows.isOver(inRowIndex)){
35 n.push("dojoxGrid-rowbar-over");
37 if(this.grid.selection.isSelected(inRowIndex)){
38 n.push("dojoxGrid-rowbar-selected");
40 inRowNode.className = n.join(" ");
43 domouseover: function(e){
44 this.grid.onMouseOverRow(e);
46 domouseout: function(e){
47 if(!this.isIntraRowEvent(e)){
48 this.grid.onMouseOutRow(e);