Custom form component

Hi,
I need to add some functionality to standard ui.form.
These additions will be used widely in my project, so I want to encapsulate them in a new form component derived from ui.form.
I use Webix Jet also.
How to place the new component in a separate file and “include” it in any page?

If you are creating it through webix.protoUI, just require this file once ( from app.js for example ) as any other module. After loading first time, the component will be available in all views.

It will look a bit more nice, if you will require this module ( where new type of ui defined ) directly from the views, where it will be used. It will work the same as one global require from app.js, but will result in more readable code. (while reading code of view, it will be clearly visible where code of custom ui can be checked )

Thank you,
Can you please look at http://webix.com/snippet/5c24b110 ?
I need to hang up my custom handler to each form element, but I can’t.

You can attach handler in the constructor
http://webix.com/snippet/9dec3937

or define it through defaults
http://webix.com/snippet/5c87c725

Thank you, but I need to hook onChange on every form element

First from two above links attaches the onChange handler, which will react on any input in the form ( any input with “name” attribute, to be precise )

but, fieldset http://webix.com/snippet/ca19ae76