webiny / webiny-js

Open-source serverless enterprise CMS. Includes a headless CMS, page builder, form builder, and file manager. Easy to customize and expand. Deploys to AWS.
https://www.webiny.com
Other
7.22k stars 589 forks source link

feat: expand object + DZ fields via settings parameter >open< #4153

Closed ma-schmidt-de closed 1 month ago

ma-schmidt-de commented 1 month ago

Changes

The new attribute open of interface CmsModelFieldSettings controls whether the accordion renderer of objects and dynamic zones are expanded by default. BREAKING CHANGE: none Closes #4109

Screenshot 2024-06-04 at 14 19 45 Screenshot 2024-06-04 at 14 20 41

How Has This Been Tested?

Manually.

Documentation

I'm planning to add a "How to" section below this on in webiny.com/docs: https://www.webiny.com/docs/headless-cms/extending/content-models-via-code#how-to-set-a-default-value-of-a-field

ma-schmidt-de commented 1 month ago

Sounds great, @Pavel910 I'll look into this and refactor my PR accordingly. 👍

ma-schmidt-de commented 1 month ago

Let me actually open a new PR. I got mixed up a bit with branches in my fork. 🙂

ma-schmidt-de commented 1 month ago

new PR: https://github.com/webiny/webiny-js/pull/4155