Suggestions on 'proper way to create a custom widget'

Hi,
My requirement is to create a custom widget in webix by using various other webix components.
Please find the code snippet in below link
http://webix.com/snippet/008c898e
Can someone please suggest me whether this way of creating a custom widget is correct or not? If no, what is the proper way to create similar widget

Any suggestions on this?

Hi,

It would be better to create a new view based on layout and add “rows” in $init method. $init is called before the view starts rendering and takes an object with configuration properties that you can change:

http://webix.com/snippet/56f638f0