Skip to content

Angular Material: OneOf Enum Control Renderer#2551

Open
daniel-shuy wants to merge 2 commits intoeclipsesource:masterfrom
daniel-shuy:angular-material/oneof-enum-control-renderer
Open

Angular Material: OneOf Enum Control Renderer#2551
daniel-shuy wants to merge 2 commits intoeclipsesource:masterfrom
daniel-shuy:angular-material/oneof-enum-control-renderer

Conversation

@daniel-shuy
Copy link
Contributor

@daniel-shuy daniel-shuy commented Mar 2, 2026

Renamed AutocompleteControlRenderer to EnumControlRenderer to be consistent with other renderer sets

  • For backwards compatibility, I've retained the old component selector and exported the component with the old class name as an alias

The OneOfEnumControlRenderer has the same implementation as the EnumControlRenderer, the only difference being that it takes in EnumOption[] instead of string[], so that a different label can be displayed instead of the value:

export interface EnumOption {
label: string;
value: any;
}

  • oneOf.const is mapped to EnumOption.value
  • oneOf.title is mapped to EnumOption.label

@netlify
Copy link

netlify bot commented Mar 2, 2026

Deploy Preview for jsonforms-examples ready!

Name Link
🔨 Latest commit 3f7d65d
🔍 Latest deploy log https://app.netlify.com/projects/jsonforms-examples/deploys/69a50a7aacbe3d000843ec38
😎 Deploy Preview https://deploy-preview-2551--jsonforms-examples.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant