-
Notifications
You must be signed in to change notification settings - Fork 3
Horizontal Table Group
andy.rothwell edited this page Aug 28, 2018
·
3 revisions
Example:
{
type: 'horizontal-table-group',
options: {
filters: [
{
type: 'data',
getValue: function(item) {
return item;
},
label: 'What nearby activity would you like to see?',
values: [
{
label: '311 Requests',
value: '311',
},
{
label: 'Crime Incidents',
value: 'crimeIncidents',
},
{
label: 'Zoning Appeals',
value: 'nearbyZoningAppeals',
},
{
label: 'Vacant Properties',
value: 'vacantIndicatorsPoints',
}
]
},
],
// components for the content pane.
tables: [
{
type: 'horizontal-table',
options: {...
... }, // end options
slots: {
// REVIEW should this go in options? maybe not, since it should be
// reactive.
items: function(state) {
// return state.pwdParcel;
return state.parcel.pwd
}
},
}