-
Notifications
You must be signed in to change notification settings - Fork 3
Collection Summary
andy.rothwell edited this page Aug 28, 2018
·
3 revisions
Example:
{
type: 'collection-summary',
options: {
descriptor: 'parcel',
// this will include zero quantities
// includeZeroes: true,
getValue: function(item) {
return item.properties.STATUS;
},
context: {
singular: function(list){ return 'There is ' + list + ' at this address.'},
plural: function(list){ return 'There are ' + list + ' at this address.'}
},
types: [
{
value: 1,
label: 'active parcel'
},
{
value: 2,
label: 'inactive parcel'
},
{
value: 3,
label: 'remainder parcel'
}
]
},
slots: {
items: function(state) {
return state.dorParcels.data;
}
}
}