eclipsesource / eclipsesource/jsonforms

Support UI Schema rule array

Open
#1,807 2 comments 0 reactions 0 assignees View on GitHub
core enhancement
Dominant language
TypeScript
Stars
2.7k
Forks
424
Avg merge
17d 8h
Merged PRs (30d)
1

Description

### Is your feature request related to a problem? Please describe.

Currently we can add only one rule per control which has only one effect. We can have cases where a control could become hidden, visible, enabled or disabled based on different rules.

### Describe the solution you'd like

In UISchemaElement change

rule?: Rule;

to

rule?: Rule | Rule[];

### Describe alternatives you've considered

Currently a work around would be to use a layout container that have another rule attached but if we have all 4 rules that applies then we should have 3 dummy containers/layouts around the control just to make that work.

### Framework

Core

### RendererSet

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.