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

Add configuration to define required properties in ContentMetadataCard #6756

Open
sonia-c opened this issue Mar 1, 2021 · 0 comments
Open

Comments

@sonia-c
Copy link

sonia-c commented Mar 1, 2021

Type of issue: (check with "[x]")

  • New feature request
  • Bug
  • Support request
  • Documentation

Current behaviour:

Adding a preset configuration, we can define which document properties are visible and editable. Example:

...,
"content-metadata": {
    "presets": {
        "custom": [...],
        "my-preset": [
            {
                "title": "This is my preset",
                "items": [
                    {
                        "editable": true,
                        "aspect": "st:siteContainer",
                        "properties": ["*"]
                    }
                ]
            }
        ]
    }
},

Expected behavior:

Expected to can define required properties too.

Component name and version:
adf-content-metadata-card 4.2.0

Browser and version:
all

New feature request:

Preset configuration could be contains an additional parameter (similar to "editable") to set required properties.
Card view components could be use this configuration to add required attribute in the inputs.

required_fields

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants