Class type Ext_selection_Model.t


class type t = object .. end
Inherits
method selected : Ext_util_MixedCollection.t Js.t Js.readonly_prop

A MixedCollection that maintains all of the currently selected records.

Defaults to: undefined

method bindStore : 'a. 'a Js.t Js.optdef -> unit Js.meth

binds the store to the selModel.

Binds a store to this instance.

Parameters:


method deselect : 'b. 'b Js.t -> bool Js.t Js.optdef -> unit Js.meth

Deselects a record instance by record instance or index.

Parameters:


method deselectAll : bool Js.t Js.optdef -> unit Js.meth

Deselects all records in the view.

Parameters:


method deselectRange : 'c 'd. 'c Js.t -> 'd Js.t -> unit Js.meth

Deselects a range of rows if the selection model is not locked.

Parameters:


method getCount : Js.number Js.t Js.meth

Returns the count of selected records.

Returns:


method getLastSelected : Ext_data_Model.t Js.t Js.meth
method getSelection : Ext_data_Model.t Js.js_array Js.t Js.meth

Returns an array of the currently selected records.

Returns:


method getSelectionMode : Js.js_string Js.t Js.meth

Returns the current selectionMode.

Returns:


method getStoreListeners : 'e. Ext_data_Store.t Js.t -> 'e Js.t Js.meth

Gets the listeners to bind to a new store.

Parameters:

Returns:


method hasSelection : bool Js.t Js.meth

Returns true if there are any a selected records.


method isFocused : Ext_data_Model.t Js.t -> unit Js.meth

Determines if this record is currently focused.

Parameters:


method isLocked : bool Js.t Js.meth

Returns true if the selections are locked.


method isRangeSelected : 'f 'g. 'f Js.t -> 'g Js.t -> bool Js.t Js.meth

Returns true if the specified row is selected.

Parameters:


method isSelected : 'h. 'h Js.t -> bool Js.t Js.meth

Returns true if the specified row is selected.

Parameters:


method select : 'i. 'i Js.t -> bool Js.t Js.optdef -> bool Js.t Js.optdef -> unit Js.meth

Selects a record instance by record instance or index.

Parameters:


method selectAll : bool Js.t -> unit Js.meth

Selects all records in the view.

Parameters:


method selectRange : 'j 'k. 'j Js.t -> 'k Js.t -> bool Js.t Js.optdef -> unit Js.meth

Selects a range of rows if the selection model is not locked. All rows in between startRow and endRow are also selected.

Parameters:


method setLastFocused : Ext_data_Model.t Js.t -> unit Js.meth

Sets a record as the last focused record. This does NOT mean that the record has been selected.

Parameters:


method setLocked : bool Js.t -> unit Js.meth

Locks the current selection and disables any changes from happening to the selection.

Parameters:


method setSelectionMode : Js.js_string Js.t -> unit Js.meth

Sets the current selectionMode.

Parameters: