How to make a custom widget (form control) label-able?

I have a need to create a custom form control that is not derived from webix.ui.text.
It is actually a “compound” control derived from webix.ui.layout and has a few views in there.
What is the easiest way to add the ability to make it have the label features for webix.ui.text?
Like the config options for “label”, “bottomLabel”, “labelAlign”, “labelPosition”, “labelWidth”.

Can webix.ui.text be used as a mixin? I don’t see how it can be mixed in because it will try to render it’s own elements.

Thanks in advance…

Hi,

The oncoming Webix 4.3 will introduce webix.ui.formfield, which will work as a container for a custom form field.

webix.ui({
    view:"formfield", name:"custom", label:"My Item", body:{
       view:"some-custom-view"
    }
})

Thank you, that will definitely be a helpful view.
When will v4.3 be released?

April 26

If you have an active license, you can drop us an email and we will share the beta