By inspecting the container object, I discovered t...
# suitecommerce
k
By inspecting the container object, I discovered that I can use this call to get the current view “container.getLayout().getCurrentView();“, but I can’t find this in the API.
s
It won't be in the API and this is fine to use, generally speaking
k
Thanks. I have been making every attempt to stick to the published API when possible. Occasionally, I have had to use the older SCA extension best practices, like wrapping the render method. In working with the Extensibility API, the biggest missing piece is getting access to the view object so I can set listeners on the view events or access the view’s model. In the case of the PLP and PDP components, I was able to work with the published API, but I also need to customize the items in the horizontal product lists (recently viewed, related items, etc). You have been a huge help to all of us developers.