How to get subview from the webix widget?

Hi guys, I want to get subview from the webix widget.
Here I am declaring the subview:

var view = {
id: “animationViewId”,
css: “homeBg”,
height: 500,
cols: [
{ $subview: AnimationView, name: “AnimationView” }
]
};
this.ui(view);
Then I tried to get this AnimationView:

this.getSubView(“AnimationView”).startAnimation(id, animId);
However, it is null/undefined. I am using JetView for class.

Hey @Yryskul, since JetViews are created asynchronously, you should wait for the view (and all of the included subviews) to render (using ready()) and only then call the getSubView method: https://snippet.webix.com/lot0woj8.

Thanks @Dzmitry. I needed AnimationView class. I accessed this class as in the following way: var animation = this.ui(AnimationView);
But I will keep your solution in my mind. Thanks.

@Yryskul
this.ui will create new object.
to access subview you need to use the method provided above.