Class type Ext_selection_Model.configs


class type configs = object .. end
Inherits
method allowDeselect : bool Js.t Js.prop

Allow users to deselect a record in a DataView, List or Grid. Only applicable when the mode is 'SINGLE'.


method mode : 'a. 'a Js.t Js.prop

Mode of selection. Valid values are:


method pruneRemoved : bool Js.t Js.prop

Remove records from the selection when they are removed from the store.

Important: When using paging or a sparsely populated (buffered) Store, records which are cached in the Store's data collection may be removed from the Store when pages change, or when rows are scrolled out of view. For this reason pruneRemoved should be set to false when using a buffered Store.

Also, when previously pruned pages are returned to the cache, the records objects in the page will be new instances, and will not match the instances in the selection model's collection. For this reason, you MUST ensure that the Model definition's idProperty references a unique key because in this situation, records in the Store have their IDs compared to records in the SelectionModel in order to re-select a record which is scrolled back into view.

Defaults to: true

method toggleOnClick : bool Js.t Js.prop

true to toggle the selection state of an item when clicked. Only applicable when the mode is 'SINGLE'. Only applicable when the allowDeselect is 'true'.

Defaults to: true