Hi guys, I want to get subview from the webix widget.
var view = {
this.getSubView(“AnimationView”).startAnimation(id, animId);
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.