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

Allow list block with fields #7322

Open
ryangittings opened this issue Nov 4, 2024 · 0 comments
Open

Allow list block with fields #7322

ryangittings opened this issue Nov 4, 2024 · 0 comments
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality

Comments

@ryangittings
Copy link
Contributor

It'd be great to allow an empty object, so that blocks that don't require an input are still able to be added (for section-drive content management).

label: 'Blocks'
  name: 'blocks'
  widget: 'list'
  types:
    - label: 'Hero'
      name: 'hero'
      widget: object
      fields:
        - { label: 'Title', name: 'title', widget: 'string' }
        - { label: 'Sidebar Text', name: 'sidebar', widget: 'string', required: false }
        - { label: 'Show Simplified Suffix', name: 'simplified', widget: 'boolean', required: false }
    - label: 'Insights'
      name: 'insights'
      widget: object
@ryangittings ryangittings added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

No branches or pull requests

1 participant