extned widget functional

Hi all! I try make custom widget from toolbar widget with using webix.protoUI

but i have error: webix_debug.js:5064 Uncaught TypeError: Cannot read property ‘length’ of undefined.

You need to change this.elements = to this.config.elements

http://webix.com/snippet/87f02dc9

thanks, Maksim!

And how I can access to widget components, for binding event callbacks and manipulate, without unique id. If create to element on one page, i have warrning
"Non unique view id: "

If you create multiple elements with the same ID error will arise for sure.

You need to have unique ids or use view access methods instead ( getChildViews, getParentView, etc. )

Also, for custom components you can use “isolate” property. It allows to use unique id inside of component, and create multiple such components on page.
http://docs.webix.com/api__link__ui.toolbar_isolate_config.html