Can you get the view object via the Extensibility ...
# suitecommerce
k
Can you get the view object via the Extensibility API? For example, I have this snippet of code:
Copy code
var pdp = container.getComponent('PDP');
if (pdp) {
  pdp.on('afterShowContent', function(view) {
    // want to access the view object here and do something like this
    view.$('.filtered-section').hide();
});
The value of the “view” argument is “ProductDetails.Full.View”, not the view object. The “this” variable is null. Is there a method in the Extensibility API that returns the object?