Jetview embedded in the body of a window

Hello,

How can we inject a Jetview in the body of window?

// window.js
{
    view: "window",
    top: 200, left:300,
    body: { template:"Hello world" } // <= OK
}

Using a Jetview in the body doesn’t work:

// window.js
import MyJetView from "./test"

(...)

{
    view: "window",
    top: 200, left:300,
    body: MyJetView // <= NOT OK
}

Still not OK:

// window.js
import MyJetView from "./test"

(...)

{
    view: "window",
    top: 200, left:300,
    body: MyJetView.getRoot() // <= NOT OK
}

Still not OK

// window.js
import MyJetView from "./test"

(...)

{
    view: "window",
    top: 200, left:300,
    body: MyJetView.getRoot().config // <= NOT OK
}

In the examples below, the window’s body is always static & simple content, but I’d like to use a Jetview for the window’s body:

Is it possible?

try to set body as layout:

{
    body: {
        rows:[
            MyJetView
        ]
    }
}

Great, that works fine.
You saved me twice today!
I owe you a beer :wink:

Starting from webix-jet 1.2, it possible to mix UI and Views inside of this.ui command, so you can use

{
    view: "window",
    top: 200, left:300,
    body: MyJetView // <= NOT OK
}

Please check https://webix.com/snippet/13b67670