Shows the View on a window.
Example
let view;
async function createView() {
const me = await fin.Window.getCurrent();
return fin.View.create({
url: 'https://google.com',
name: 'viewNameShow',
target: me.identity,
bounds: {top: 10, left: 10, width: 200, height: 200}
});
}
async function hideAndShowView() {
await createView();
console.log('View created.');
const me = await fin.Window.getCurrent();
view = fin.View.wrapSync({ uuid: me.identity.uuid, name: 'viewNameShow' });
await view.hide();
console.log("View hidden.");
view.show();
console.log("View shown.");
}
hideAndShowView()
.then(() => console.log('View hidden and shown.'))
.catch(err => console.log(err));