When list of MFEs are loaded, some can choose to have a pre-designed page instead of providing a MFE url to load as an iframe.
When a MFE is set to be a list - it should have a url to which the list will be loaded from, and a list of actions per each item (remove / update / go).
Each action can specify a new route to navigate, or fetch options to call.
The MFE object should look like:
name
description
route
kind: "blocks-list"
fetchData: FetchOptions
onClick: ItemOperation
onRemove: ItemOperation
ItemOperation interface:
navigate: RouteParams
apiCall: FetchOptions
FetchOptions interface:
includes every "fetch" options, and also:
When list of MFEs are loaded, some can choose to have a pre-designed page instead of providing a MFE url to load as an iframe.
When a MFE is set to be a list - it should have a url to which the list will be loaded from, and a list of actions per each item (remove / update / go). Each action can specify a new route to navigate, or fetch options to call.
The MFE object should look like:
ItemOperation interface:
FetchOptions interface: includes every "fetch" options, and also: