feat: Add group by
to collection view (Issue 3614) (#4486)
This commit is contained in:
committed by
GitHub
parent
519cb2d4c2
commit
e52e29034e
@ -97,6 +97,21 @@ const viewFilters = {
|
||||
},
|
||||
};
|
||||
|
||||
const viewGroups = {
|
||||
type: 'array',
|
||||
minItems: 1,
|
||||
items: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
label: { type: 'string' },
|
||||
field: { type: 'string' },
|
||||
pattern: { type: 'string' },
|
||||
},
|
||||
additionalProperties: false,
|
||||
required: ['label', 'field'],
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* The schema had to be wrapped in a function to
|
||||
* fix a circular dependency problem for WebPack,
|
||||
@ -234,6 +249,7 @@ const getConfigSchema = () => ({
|
||||
},
|
||||
},
|
||||
view_filters: viewFilters,
|
||||
view_groups: viewGroups,
|
||||
nested: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
|
Reference in New Issue
Block a user