Skip to content

Categories should support rules #1278

@edgarmueller

Description

@edgarmueller

Describe the bug
Categories should be hideable based on rules.

To Reproduce
Steps to reproduce the behavior:

  1. Specify a rule on any category, e.g. in the context of the person example:
{
      type: 'Category',
      label: 'Additional',
      elements: [
        {
          type: 'Control',
          scope: '#/properties/birthDate'
        },
        {
          type: 'Control',
          scope: '#/properties/vegetarian'
        }
      ],
      rule: {
        effect: 'HIDE',
        condition: {
          scope: '#/properties/vegetarian',
          schema: { const: true }
        }
      }
    }

Expected behavior
When setting the vegetarian property to true, the "Additional" tab should be hidden

Used Setup (please complete the following information):

  • Framework: react, angular]
  • RendererSet: material

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions