-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
DataForm component #59745
Comments
@youknowriad @oandregal Out of curiosity, will the DataForm ever allow control over layout within a form (columns, tabs, sections, etc) or would those be comprised of multiple DataForms? |
@joshuatf My current thinking is that "columns" and "tabs" are something you should be able to control on the |
Noting this is closely related to #63624. |
Added a new section in the issue for "Task/Log". Also: created #63895 that prepares the initial structure for validation. |
#63983 adds the ability to update the author in the quick edit form. |
In #63983 I ran into some issues with sorting. While working on them we discussed the need to formalize a bit the existing field types. This is the ongoing work: |
Edited a bit the issue description, including updating the issue title to Also added some new tasks:
|
Edited a bit the issue description, adding some issues that we opened in the last weeks. I hope that it is fine! |
Related:
Problem scope
As we continue expanding our UIs, be it the editor UI or new pages being added to the site editor, we’re finding our selves creating a lot of forms to edit entities and for each one of these, we keep recreating adhoc designs and implement adhoc forms.
Here are some of the existing forms:
Also, as we advance into the admin redesign work, we’ll be creating even more forms:
To avoid creating and designing UIs for these over and over again in an ad-hoc and inconsistent way, we should explore an API to generate these forms consistently.
Proposal
When implementing the DataViews in the site editor, we introduce a “fields” config for each data view component. To render a DataView, we’ve built a generic component with the following API:
So this component render a list of items given a “fields” config and a some options (view).
Similarly, we should explore building a generic component that renders a form/panel
Such component would render a form or panel for a given item based on a “fields” config and some options (form).
Notes
Tasks
selectItem
callback #66338Improvements
render
function argument #66616Fields improvements
The text was updated successfully, but these errors were encountered: