Altinn / altinn-cdn

Static assets used by Altinn solutions and apps.
https://altinncdn.no
1 stars 30 forks source link

PrintButton in schema #101

Closed mjulstein closed 2 years ago

mjulstein commented 2 years ago

This adds intelisense support for the PrintButton.

Description

Adds "PrintButton" to the JSON-schema.

Related Issue(s)

mjulstein commented 2 years ago

@altinnadmin any pointers from here?

altinnadmin commented 2 years ago

@mjulstein @haakemon Did we abandon using a new "Print" button type and instead create a whole new button-component?

haakemon commented 2 years ago

@altinnadmin No, we are following the same pattern that is already established.

The "button type selector" is a Studio Designer concept - it renders different components under the hood today for Submit (which is just called ButtonComponent in the code which is a bit confusing) and NavigationButtons.

In Studio Designer, we should still have only 1 Button, which should get 1 additional option (Print button).

We would also like to clean this up a bit with the new Design System Button. We have multiple button definitions in the code today - these should all be based on the Design System button instead.

The underlying concept would be the same (render different components based on the type selected in Studio Designer/set in formlayout.json)

haakemon commented 2 years ago

@altinnadmin This can be merged now