Tutorial: View.getCurrentWindow

View.getCurrentWindow

Retrieves the Window the View is currently attached to.

Example

const view = fin.View.wrapSync({ uuid: 'viewUuid', name: 'viewName' });
view.getCurrentWindow()
    .then(win => console.log('current window', win))
    .catch(err => console.log(err));)