How to set a ui code on a html page

I have this small toggle code:

webix.ui({
            padding:20,
            width:400,
            view:"layout",
            rows:[
                { type:"section", template:"payment"},
                { view: "switch", onLabel: "monthly", offLabel:"yearly", value: 1 },
            ]
        });

How can I put this on a html page? just like a part of html code which it is anyway! I mean I have a html page and in this I only want to have a webix ui inside. If I put this code above in the page I only get this sippet without a rest of the html side… :frowning:

regards
Michael

try to define some container for the layout and use container property in config
https://docs.webix.com/api__link__ui.layout_container_config.html
https://snippet.webix.com/ow3js7d1

1 Like

Hello integral. I found it. I’m so stupid… :laughing: