Alien-Web-ExtJS-V3

 view release on metacpan or  search on metacpan

share/docs/source/CellSelectionModel.html  view on Meta::CPAN

<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js"><span id='Ext-grid-CellSelectionModel-method-constructor'><span id='Ext-grid-CellSelectionModel'>/**
</span></span> * @class Ext.grid.CellSelectionModel
 * @extends Ext.grid.AbstractSelectionModel
 * This class provides the basic implementation for &lt;i&gt;single&lt;/i&gt; &lt;b&gt;cell&lt;/b&gt; selection in a grid.
 * The object stored as the selection contains the following properties:
 * &lt;div class=&quot;mdetail-params&quot;&gt;&lt;ul&gt;
 * &lt;li&gt;&lt;b&gt;cell&lt;/b&gt; : see {@link #getSelectedCell} 
 * &lt;li&gt;&lt;b&gt;record&lt;/b&gt; : Ext.data.record The {@link Ext.data.Record Record}
 * which provides the data for the row containing the selection&lt;/li&gt;
 * &lt;/ul&gt;&lt;/div&gt;
 * @constructor
 * @param {Object} config The object containing the configuration of this model.
 */
Ext.grid.CellSelectionModel = Ext.extend(Ext.grid.AbstractSelectionModel,  {
    
    constructor : function(config){
        Ext.apply(this, config);

	    this.selection = null;
	
	    this.addEvents(
<span id='Ext-grid-CellSelectionModel-event-beforecellselect'>	        /**
</span>	         * @event beforecellselect
	         * Fires before a cell is selected, return false to cancel the selection.
	         * @param {SelectionModel} this
	         * @param {Number} rowIndex The selected row index
	         * @param {Number} colIndex The selected cell index
	         */
	        &quot;beforecellselect&quot;,
<span id='Ext-grid-CellSelectionModel-event-cellselect'>	        /**
</span>	         * @event cellselect
	         * Fires when a cell is selected.
	         * @param {SelectionModel} this
	         * @param {Number} rowIndex The selected row index
	         * @param {Number} colIndex The selected cell index
	         */
	        &quot;cellselect&quot;,
<span id='Ext-grid-CellSelectionModel-event-selectionchange'>	        /**
</span>	         * @event selectionchange
	         * Fires when the active selection changes.
	         * @param {SelectionModel} this
	         * @param {Object} selection null for no selection or an object with two properties
	         * &lt;div class=&quot;mdetail-params&quot;&gt;&lt;ul&gt;
	         * &lt;li&gt;&lt;b&gt;cell&lt;/b&gt; : see {@link #getSelectedCell} 
	         * &lt;li&gt;&lt;b&gt;record&lt;/b&gt; : Ext.data.record&lt;p class=&quot;sub-desc&quot;&gt;The {@link Ext.data.Record Record}
	         * which provides the data for the row containing the selection&lt;/p&gt;&lt;/li&gt;
	         * &lt;/ul&gt;&lt;/div&gt;



( run in 0.439 second using v1.01-cache-2.11-cpan-02777c243ea )