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:
https://github.com/webix-hub/jet-demos/blob/master/sources/windows.js

Is it possible?

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!