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
We are trying to add some 'dynamic' parameters (not dynamic as in that they are added to the component config of a dynamic component, but I extended the backend so that these parameters are added dynamically). This means they are not in the "paramsInfo" in the pagemodel, but in the "params" (this is expected according to this documentation: https://xmdocumentation.bloomreach.com/library/concepts/page-model-api/page-model-api-v1.0.html).
I also see this field in the ContainerItemMeta interface in: https://github.com/bloomreach/spa-sdk/blob/main/packages/spa-sdk/src/page/container-item.ts but they are not returned when calling component.getParameters() and there's also no other method to reach them. Would it be possible to return them in addition to the paramsInfo when calling getParameters()? I see that in the Component class, it does return the params instead of paramsInfo, but most of the components where we want this are of type ContainerItemImpl.
The text was updated successfully, but these errors were encountered:
Hi @ienemien ,
Sorry for the late reply, it slipped my radar.
Yes I agree this should be possible and is not right now. I notice that in the Component class the getProperties method returns the meta.params but then we override it in the ContainerItem class by returning meta.paramsInfo. We should at least return a merge of the two.
We are trying to add some 'dynamic' parameters (not dynamic as in that they are added to the component config of a dynamic component, but I extended the backend so that these parameters are added dynamically). This means they are not in the "paramsInfo" in the pagemodel, but in the "params" (this is expected according to this documentation: https://xmdocumentation.bloomreach.com/library/concepts/page-model-api/page-model-api-v1.0.html).
I also see this field in the ContainerItemMeta interface in: https://github.com/bloomreach/spa-sdk/blob/main/packages/spa-sdk/src/page/container-item.ts but they are not returned when calling
component.getParameters()
and there's also no other method to reach them. Would it be possible to return them in addition to the paramsInfo when calling getParameters()? I see that in the Component class, it does return the params instead of paramsInfo, but most of the components where we want this are of type ContainerItemImpl.The text was updated successfully, but these errors were encountered: