class type t =Inheritsobject
..end
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:
_ Js.t
(optional)
The store to bind or ID of the store.
When no store given (or when null
or undefined
passed), unbinds the existing store.
method deselect : 'b. 'b Js.t -> bool Js.t Js.optdef -> unit Js.meth
Deselects a record instance by record instance or index.
Parameters:
_ Js.t
An array of records or an index
bool Js.t
(optional)
True to not fire a deselect event
Defaults to: falsemethod deselectAll : bool Js.t Js.optdef -> unit Js.meth
Deselects all records in the view.
Parameters:
bool Js.t
(optional)
True to suppress any deselect events
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:
_ Js.t
The record or index of the first row in the range
_ Js.t
The record or index of the last row in the range
method getCount : Js.number Js.t Js.meth
Returns the count of selected records.
Returns:
Js.number Js.t
The number of selected records
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:
Ext_data_Model.t Js.js_array Js.t
The selected records
method getSelectionMode : Js.js_string Js.t Js.meth
Returns the current selectionMode.
Returns:
Js.js_string Js.t
The selectionMode: 'SINGLE', 'MULTI' or 'SIMPLE'.
method getStoreListeners : 'e. Ext_data_Store.t Js.t -> 'e Js.t Js.meth
Gets the listeners to bind to a new store.
Parameters:
Ext_data_Store.t Js.t
The Store which is being bound to for which a listeners object should be returned.
Returns:
_ Js.t
The listeners to be bound to the store in object literal form. The scope may be omitted, it is assumed to be the current instance.
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:
Ext_data_Model.t Js.t
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:
_ Js.t
The start of the range to check.
_ Js.t
The end of the range to check.
method isSelected : 'h. 'h Js.t -> bool Js.t Js.meth
Returns true if the specified row is selected.
Parameters:
_ Js.t
The record or index of the record to check
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:
_ Js.t
An array of records or an index
bool Js.t
(optional)
True to retain existing selections
Defaults to: falsebool Js.t
(optional)
True to not fire a select event
Defaults to: falsemethod selectAll : bool Js.t -> unit Js.meth
Selects all records in the view.
Parameters:
bool Js.t
True to suppress any select events
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:
_ Js.t
The record or index of the first row in the range
_ Js.t
The record or index of the last row in the range
bool Js.t
(optional)
True to retain existing selections
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:
Ext_data_Model.t Js.t
method setLocked : bool Js.t -> unit Js.meth
Locks the current selection and disables any changes from happening to the selection.
Parameters:
bool Js.t
True to lock, false to unlock.
method setSelectionMode : Js.js_string Js.t -> unit Js.meth
Sets the current selectionMode.
Parameters:
Js.js_string Js.t
'SINGLE', 'MULTI' or 'SIMPLE'.