jsonforms icon indicating copy to clipboard operation
jsonforms copied to clipboard

Angular Material Stepper

Open JonasDev17 opened this issue 1 year ago • 3 comments

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

JonasDev17 avatar Apr 11 '23 07:04 JonasDev17

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.

sdirix avatar Apr 11 '23 11:04 sdirix

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.

JonasDev17 avatar Apr 11 '23 17:04 JonasDev17

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.

sdirix avatar Apr 12 '23 06:04 sdirix