Type:
- string
model :model
The model used by this view.
Type:
modelName :model.ModelId
The id of the model used by this view.
Type:
Type:
- string
The jQuery object for the view.
Type:
- jQuery
Returns the currently selected model records in the view. If there is no selection or the view does not support selection then an empty array is returned.
Returns:
- Type
- Array
Sets the current selection in the view from the given array of model records. Only applies if the view supports selection.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
pRecords |
Array | an array of model records or an array of model record ids as returned by model getRecordId. If this is an empty array then the selection is cleared. | |
pFocus |
boolean |
<optional> |
if true the first cell/field/item of the selection is given focus. |
pNoNotify |
boolean |
<optional> |
if true the selection change event will be suppressed |