Closed mjulstein closed 2 years ago
@altinnadmin any pointers from here?
@mjulstein @haakemon Did we abandon using a new "Print" button type and instead create a whole new button-component?
@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)
@altinnadmin This can be merged now
This adds intelisense support for the PrintButton.
Description
Adds "PrintButton" to the JSON-schema.
Related Issue(s)