Add html div in webix object

Hello , I have a page with html :

<head></head> <body><div id="content1">...<div></body>

I try to integrate “content1” in webix object like :

<script>
webix.ui(
            {
                cols: [
                    {
                        view: "template",
                        container: "content1"
                    },
                  
                ],

            }
    );
</script>

but when the page is load , the div is execute and content is in page but not in object that is shown empty at the bottom.

How to encapsulate div in object ?

thanks

Oups , tags “body”, “div” disappeared on post message

It must be

{ view: "template", content: "content1" }
  • container - moves views into the container
  • content - moves content into the view

Can we encapsulate div in datatable ?

Hello @Riht ,

You can place a div into the template
https://docs.webix.com/desktop__html_templates.html#templatetypes