AnsweredAssumed Answered

Get subpanel rows in subpanel.js or subpanel-list.js

Question asked by Cristian Chavez on Sep 16, 2015
Latest reply on Sep 17, 2015 by
Hi guys,

I'm trying to get the rows of an especifically subpanel but I can't. I created a new subpanel.js in custom/modules/<module>/clientes/base/layouts/subpanel.js and I tried to make something like this:
({      extendsFrom: 'SubpanelsLayout',            initialize: function (options)      {          app.view.invokeParent(this, {type: 'layout', name: 'subpanels', method: 'initialize', args:[options]});      },       showSubpanel: function()      {          var self = this;          self.model.on("change", function()          {              console.log(self._components);                });      },     _render: function(){    this._super('_render');   },  })
As you can see in the following picture, after I logged _components, I found the rows in _components -> collection -> models. But, I can't retrieve that elements in my subpanel.js file

So the question is:
- what am I doing wrong?
- is subpanel.js the correct file to customize the subpanel view?

Thanks in advance,