Dataviews: "elements" property of field items should be a subproperty of "filterBy" #64635
Labels
[Feature] DataViews
Work surrounding upgrading and evolving views in the site editor and beyond
[Package] DataViews
/packages/dataviews
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
The
elements
property and thefilterBy
property of Dataviews are tightly coupled. In fact, filters are enabled by a field just by passing a proper array of objects to theelements
property even whenfilterBy
is empty. From a Developer Experience point of view, I think this is a bit confusing.What is your proposed solution?
I think it makes more sense for the
elements
property to be a sub-property offilterBy
so it's more naturally understandable that:elements
property offilterBy
, receives an array ofvalue
-label
objectsoperators
andisPrimary
valuesIn the meantime, I opened #64633 to clarify this from the docs
cc: @oandregal
The text was updated successfully, but these errors were encountered: