cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
545
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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: