StoreSum
Properties
2
Properties
2Functions
5
Functions
5Returns the average value for the specified field. Defaults to look through all locally available records in store
| Parameter | Type | Description |
|---|---|---|
field | String | Field to calculate average value for |
records | Model[] | Records to process, uses all records if unspecified |
Returns sum by adding value of specified field for records in the group with the specified groupValue.
| Parameter | Type | Description |
|---|---|---|
groupValue | * | The group to summarize |
field | String | Field to summarize by |
Sum or null if store not grouped
Returns max value for the specified field, can be used with Date or Number values. Defaults to look through all locally available records in store
| Parameter | Type | Description |
|---|---|---|
field | String | Field to find max value for |
records | Model[] | Records to process, uses all records if unspecified |
Returns min value for the specified field, can be used with Date or Number values. Defaults to look through all locally available records in store
| Parameter | Type | Description |
|---|---|---|
field | String | Field to find min value for |
records | Model[] | Records to process, uses all records if unspecified |