eclipsesource / jsonforms

Customizable JSON Schema-based forms with React, Angular and Vue support out of the box.
http://jsonforms.io
Other
2.14k stars 359 forks source link

Angular Material Stepper #2128

Open JonasDev17 opened 1 year ago

JonasDev17 commented 1 year ago

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

The angular material renderer does not support the stepper provided by angular material.

Describe the solution you'd like

Would be good if it renders a material stepper when I define the option variant: "stepper" in an angular material project since that is an option in the docs. And maybe add the orientation to it as described in #1817 (which would be simply another option instead of a new renderer)

Describe alternatives you've considered

I considered just using jsonforms inside a stepper instead.

Framework

Angular

RendererSet

Material

Additional context

No response

sdirix commented 1 year ago

We often recommend going with the alternative approach described by you. The reason is that errors are naturally scoped and it's easy to add custom stepping logic then. There is not much benefit of rendering the steps within JSON Forms.

JonasDev17 commented 1 year ago

We often recommend going with the alternative approach described by you. The reason is that errors are naturally scoped and it's easy to add custom stepping logic then. There is not much benefit of rendering the steps within JSON Forms.

Understandable, maybe add something in the documentation that the stepper does not work in angular (or potentially other frameworks) because its just frustrating when you invest time to try and figure out why your stepper does not work just to find out its not a feature of the jsonforms angular material package.

sdirix commented 1 year ago

We have an overview over the renderer sets here: https://jsonforms.io/docs/renderer-sets

The website is also open source, so you can add an entry for the stepper variant of the Categorization there.