Support actions property on CustomButton component #13765
Labels
area/ui-editor
Area: Related to the designer tool for assembling app UI in Altinn Studio.
kind/user-story
Used for issues that describes functionality for our users.
status/draft
Status: When you create an issue before you have enough info to properly describe the issue.
team/studio-domain2
ux
UX help needed
Description
Setting up a CustomButton with actions is required for a subform layoutset. The action must be a
closeSubform
action. See reference docs.We currently have no support for actions config for the CustomButton component. We should implement a custom config for this property.
There are 2 types of actions:
actions
is an array of objects. The items in the array all have the propertiesid: string
- the id of the actiontype: "ClientAction" | "ServerAction"
.In addition, items with type "ClientAction" may also have additional properties. See the documentation for CustomButton for details.
Additional Information
One alternative we might consider in the short run is to implement a "CloseSubformButton" which is a specific implementation of the CustomButton:
and make this available as a pre-configured component.
Tasks
No response
Acceptance Criterias
No response
The text was updated successfully, but these errors were encountered: