Creating a Component with Checkboxes

Hello, i am new to WebIx and a complete beginner,
I need to create a component that lets you select actives days,
represented of a group of 7 Checkboxes, one for each day of the way.
And the value for input or output must be a string of 7 bits where a 1 represents the selected days, and a 0 not selected
Example : 0100010 = Monday, Friday

This is what i have so far, any recommendation and tips will be welcome,

http://webix.com/snippet/619d7164

Ok an update on my question, this is what i got so far,

http://webix.com/snippet/fcafe162

now i need tips on how to handle a label for the whole component

Hello,

The above sample (AFAICS, it was taken from an old topic) isn’t quite appropriate for your use-case. I would rather suggest you check the related article in the documentation and the post from our blog.

A very raw sample of such component can look as follows:

http://webix.com/snippet/5f0ba64e

thank you this is goint to help me alot

With your help i was able to get this, http://webix.com/snippet/7e5167fc,
and it works almost perfect, only issue is that i dont know why,
the readonly is not working

Hello,

Please note that within the $init handler you must work with widget config that is passed into it as a parameter. You can read and write all the settings of this config.

In your snippet you refer to this.config, which is empty at the moment of initialization.

$init: function (config) { 
    config.labelWidth=50;
    ...
    checkboxes.push({
	   view:"checkbox",
	   readonly:config.readonly
    });
}

Please, check the updated snippet: http://webix.com/snippet/b99c4ba8

ahhh my bad, thank you again