X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/d41dc04ad17d1d9125fb2cf72db2b4782dbe3a8c..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/docs/output/Ext.grid.CellSelectionModel.html?ds=sidebyside diff --git a/docs/output/Ext.grid.CellSelectionModel.html b/docs/output/Ext.grid.CellSelectionModel.html index 542720ea..c5c19f20 100644 --- a/docs/output/Ext.grid.CellSelectionModel.html +++ b/docs/output/Ext.grid.CellSelectionModel.html @@ -1,559 +1,224 @@ -
Observable - AbstractSelectionModel - CellSelectionModel
Package: | Ext.grid |
Defined In: | CellSelectionModel.js |
Class: | CellSelectionModel |
Extends: | AbstractSelectionModel |
Observable AbstractSelectionModel CellSelectionModel
Package: | Ext.grid |
Defined In: | CellSelectionModel.js |
Class: | CellSelectionModel |
Extends: | AbstractSelectionModel |
The Record -which provides the data for the row containing the selection
An object containing the -following properties: -
The index of the selected row
The index of the selected cell
-Note that due to possible column reordering, the cellIndex should not be used as an index into
-the Record's data. Instead, the name of the selected field should be determined
-in order to retrieve the data value from the record by name:
var fieldName = grid.getColumnModel().getDataIndex(cellIndex);
- var data = record.get(fieldName);
Config Options | -Defined By | -|
---|---|---|
- |
-
- listeners : Object
-
- (optional) A config object containing one or more event handlers to be added to this object during initialization. Th...
-
- (optional) A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the addListener example for attaching multiple handlers at once.
- |
- Observable | -
Method | -Defined By | -|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- |
-
- CellSelectionModel( Object config )
-
-
-
-
-
- Parameters:
-
-
|
- CellSelectionModel | -||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
-
- addEvents( Object object ) : void
-
- Used to define events on this Observable
-
- Used to define events on this Observable
-
- Parameters:
-
-
|
- Observable | -||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
-
- addListener( String eventName , Function handler , [Object scope ], [Object options ] ) : void
- Returns:Appends an event handler to this component
-
- Appends an event handler to this component
\ No newline at end of file
+
- Parameters:
-
Config Options
Public Properties
Public Methods
Public Events-
| Observable | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clearSelections( Boolean preventNotify )
+ :
+ voidIf anything is selected, clears all selections and fires the selectionchange event. If anything is selected, clears all selections and fires the selectionchange event. Parameters:
| CellSelectionModel | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
enableBubble( String/Array events )
+ :
+ voidEnables events fired by this Observable to bubble up an owner hierarchy by calling
+this.getBubbleTarget() if present... Enables events fired by this Observable to bubble up an owner hierarchy by calling
+ This is commonly used by Ext.Components to bubble events to owner Containers. See Ext.Component.getBubbleTarget. The default +implementation in Ext.Component returns the Component's immediate owner. But if a known target is required, this can be overridden to +access the required target more quickly. +Example:
Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fireEvent( String eventName , Object... args )
+ :
+ BooleanFires the specified event with the passed parameters (minus the event name).
+An event may be set to bubble up an Obse... Fires the specified event with the passed parameters (minus the event name). +An event may be set to bubble up an Observable parent hierarchy (See Ext.Component.getBubbleTarget) +by calling enableBubble. Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
getSelectedCell()
+ :
+ Array Returns an array containing the row and column indexes of the currently selected cell
+(e.g., [0, 0]), or null if none... Returns an array containing the row and column indexes of the currently selected cell
+(e.g., [0, 0]), or null if none selected. The array has elements:
+
Parameters:
| CellSelectionModel | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
hasListener( String eventName )
+ :
+ BooleanChecks to see if this object has any listeners for a specified event Checks to see if this object has any listeners for a specified event Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
hasSelection()
+ :
+ Boolean Returns true if there is a selection. Returns true if there is a selection. Parameters:
| CellSelectionModel | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
isLocked()
+ :
+ Boolean Returns true if the selections are locked. Returns true if the selections are locked. Parameters:
| AbstractSelectionModel | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lock()
+ :
+ void Locks the selections. Locks the selections. Parameters:
| AbstractSelectionModel | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
on( String eventName , Function handler , [Object scope ], [Object options ] )
+ :
+ voidAppends an event handler to this object (shorthand for addListener.) Appends an event handler to this object (shorthand for addListener.) Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
purgeListeners()
+ :
+ void Removes all listeners for this object Removes all listeners for this object Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
relayEvents( Object o , Array events )
+ :
+ voidRelays selected events from the specified Observable as if the events were fired by this. Relays selected events from the specified Observable as if the events were fired by this. Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
removeListener( String eventName , Function handler , [Object scope ] )
+ :
+ voidRemoves an event handler. Removes an event handler. Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
resumeEvents()
+ :
+ void Resume firing events. (see suspendEvents)
+If events were suspended using the queueSuspended parameter, then all
+event... Resume firing events. (see suspendEvents)
+If events were suspended using the queueSuspended parameter, then all
+events fired during event suspension will be sent to any listeners now. Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
select( Number rowIndex , Number colIndex , [Boolean preventViewNotify ], [Boolean preventFocus ], [Ext.data.Record r ] )
+ :
+ voidSelects a cell. Before selecting a cell, fires the
+beforecellselect event. If this check is satisfied the cell
+will... Selects a cell. Before selecting a cell, fires the
+beforecellselect event. If this check is satisfied the cell
+will be selected and followed up by firing the cellselect and
+selectionchange events. Parameters:
| CellSelectionModel | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
suspendEvents( Boolean queueSuspended )
+ :
+ voidSuspend the firing of all events. (see resumeEvents) Suspend the firing of all events. (see resumeEvents) Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
un( String eventName , Function handler , [Object scope ] )
+ :
+ voidRemoves an event handler (shorthand for removeListener.) Removes an event handler (shorthand for removeListener.) Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
unlock()
+ :
+ void Unlocks the selections. Unlocks the selections. Parameters:
| AbstractSelectionModel |
Event | Defined By | |
---|---|---|
beforecellselect :
+ ( SelectionModel this , Number rowIndex , Number colIndex )
+ Fires before a cell is selected, return false to cancel the selection. Fires before a cell is selected, return false to cancel the selection. Listeners will be called with the following arguments:
| CellSelectionModel | |
cellselect :
+ ( SelectionModel this , Number rowIndex , Number colIndex )
+ Fires when a cell is selected. Fires when a cell is selected. Listeners will be called with the following arguments:
| CellSelectionModel | |
selectionchange :
+ ( SelectionModel this , Object selection )
+ Fires when the active selection changes. Fires when the active selection changes. Listeners will be called with the following arguments:
| CellSelectionModel |