You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These are the options for handling summary for custom components:
Just rendering a simple summary component using displayData (the same as old summary)
Not all custom components use formdata so it will not work for those cases
Also for DIBK they data from several fields and need a specific format with linebreaks and commas
Simply render the custom component summary2 the same as in the app
This might cause custom components in existing apps to now appear in summaries and PDFs in apps using summary2
Render the custom component summary2 the same as the app, but introduce a property that you need to set in order for the component to render in summary.
Simply render custom component summary2 the same as in the app, but programmatically give the component a property telling it it is now rendered using summary2. The App developer will have to check the property and change the layout of the component if they wish. (Ex: removing input field)
combo of 3 and 4 to prevent breaking change
Option 2 and 4 is a breaking change, but might be fine as not many apps are using custom components and summary2 is somewhat open for making breaking changes.
Option 3 prevents making a breaking change, but the extra property for explicitly showing the component in summary might be a bit confusing.
We have decided to go for option 4
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Description
We need a way of rendering custom components in PDF / summary2.
PR: #2840
These are the options for handling summary for custom components:
Option 2 and 4 is a breaking change, but might be fine as not many apps are using custom components and summary2 is somewhat open for making breaking changes.
Option 3 prevents making a breaking change, but the extra property for explicitly showing the component in summary might be a bit confusing.
We have decided to go for option 4
Additional Information
No response
The text was updated successfully, but these errors were encountered: