DataViews: Split the components into composable components. #63646
Labels
[Feature] DataViews
Work surrounding upgrading and evolving views in the site editor and beyond
[Type] Enhancement
A suggestion for improvement.
Part of #55083
Right now, when you render the DataViews component, it gets rendered all in one including:
This approach provides a straightforward way to use DataViews but lacks flexibility. For instance in #55101 we want to add a "toggle" to show the dataviews sidebar at the right of the view config dropdown. That toggle doesn't have anything to do with DataViews so it shouldn't rendered within the dataviews component.
We have two options:
Short Term option
Just have some kind of slot prop to inject UI there. I'll probably use this approach initially.
Long Term option
Expose the underlying DataViews component and allow composition:
Any thoughts @ntsekouras @ellatrix @oandregal @jorgefilipecosta
Also components team as they're exploring a similar pattern for the components package. @ciampo @mirka @DaniGuardiola
The text was updated successfully, but these errors were encountered: