Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Form: define props to differentiate field layouts #66336

Open
gigitux opened this issue Oct 22, 2024 · 0 comments
Open

Data Form: define props to differentiate field layouts #66336

gigitux opened this issue Oct 22, 2024 · 0 comments
Labels
[Feature] DataViews Work surrounding upgrading and evolving views in the site editor and beyond [Package] DataViews /packages/dataviews

Comments

@gigitux
Copy link
Contributor

gigitux commented Oct 22, 2024

Description

In order to facilitate better customization and flexibility in field layouts we should introduce new props that can be utilized by various data views layouts to determine how fields should be rendered. These props will allow data views layouts to decide whether or not to use it, providing more granular control over the presentation of fields.

Discussion Points

  1. Purpose of the Prop:

    • Identify the prop that would effectively define the distinction in field rendering.
    • Examples of such props include size or isDetailed.
  2. Implementation:

    • Data Views layouts can opt to use this prop to render fields differently.
  3. Field Behavior:

    • Each field can then decide what it means for them to change size or to show details.
    • Some fields might determine that the prop has no impact on their rendering.

Expected Outcome

  • Enhanced flexibility in field presentation.
  • Consistent and customizable rendering logic across different layouts.

Next Steps

  • Discuss potential prop options (size, isDetailed, etc.)
  • Define how these props will be implemented and utilized within layouts.
  • Determine the impact on existing fields and their default behaviors.

Reference

The original discussion can be found in the related thread #64496 (comment)

@gigitux gigitux added [Feature] DataViews Work surrounding upgrading and evolving views in the site editor and beyond [Package] DataViews /packages/dataviews labels Oct 25, 2024
@gigitux gigitux changed the title Data Views: define props to differentiate field layouts Data Form: define props to differentiate field layouts Oct 31, 2024
@gigitux gigitux mentioned this issue Sep 26, 2024
20 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] DataViews Work surrounding upgrading and evolving views in the site editor and beyond [Package] DataViews /packages/dataviews
Projects
None yet
Development

No branches or pull requests

1 participant