cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
694
Views
0
Helpful
2
Replies

Assignment to a DOM object

alzverev
Cisco Employee
Cisco Employee

Hi

Can we assign an nx.ui.Application to a DOM object? Now the NeXt needs to use the whole web page and if want to use it inside another web page, we plug it in via iframe.

What if we have external web app and <div id="next-app"></div> inside of it. Can we assign NeXt application to this div and then 'attach' all the components inside of it?

1 Accepted Solution

Accepted Solutions

aaikepae
Cisco Employee
Cisco Employee

You can use this.

var app = new nx.ui.Application();
app.container(document.getElementById('app'));
topo.attach(app);

View solution in original post

2 Replies 2

aaikepae
Cisco Employee
Cisco Employee

You can use this.

var app = new nx.ui.Application();
app.container(document.getElementById('app'));
topo.attach(app);

Perfect! Thank you.