Hi,
** I repost this because I think it was not the right place to put my question in the comments of another thread… **
I’ve upgraded to Webix Jet 1.0.6 but I’m not sure how to reproduce your code. I’ve tried different things without success.
// The Jetview to embed in a window
import { JetView } from "webix-jet";
export default class MyEmbeddedJetview extends JetView {
config() {
return {
template: "This should be embedded in a window"
};
}
show(target) {
this.getRoot().show(target);
}
}
Then I define the container Jetview:
// The Jetview that should embed the first one
import { JetView } from "webix-jet";
import MyEmbeddedJetview from "./myJetview";
export default class MyContainerJetview extends JetView {
config() {
return {
// ...
}
}
init() {
const winTest = {
view: "window",
position: "center",
width: 300,
height: 200,
body: {
rows: [
{ template: "hello" },
{ template: "world" } // TEST 1: works fine
]
}
};
this.winTest= this.ui(winTest);
}
}
TEST 2: same window with a Jetview embedded => this does not work:
const winTest = {
view: "window",
position: "center",
width: 300,
height: 200,
body: {
rows: [
{ template: "hello" },
MyEmbeddedJetview // TEST 2 : the window is blank
]
}
};