custom checkbox in property

I want add custom checkbox but click does not work

https://snippet.webix.com/p6l3jzqp

Thank,
nkm

Hello,
In your original example, you tried to create your own editor type but missed that a custom editor should be registered with registerType method and specify its behavior.
Please check the following snippet:
https://snippet.webix.com/f3kr43u1

@annazankevich thank you for your answer.

can it be declared registerType in elements? code property is in another file.

in this file is only switch, which checking type and send value

my code actualy checkbox (works correctly). I need add custom checkbox

        case "checkbox":

          rows.push({ 
            id:a.name, 
            label:a.label,
            type:"checkbox":,
            css: "checkbox",
          });

          break;

I found information that I can use function in elements but I did not find examples of use
https://docs.webix.com/desktop__property_sheet.html#editingdatainelements

can it be declared registerType in elements?

registerType is a method that can only be called after property is initialized on the page. If you need to include this functionality directly in the component, you can create a custom component as the example below:
https://snippet.webix.com/1dxmz81h