Gets the options for a View.
Example
let view;
async function createView() {
const me = await fin.Window.getCurrent();
return fin.View.create({
name: 'viewNameGetOptions',
target: me.identity,
bounds: {top: 10, left: 10, width: 200, height: 200}
});
}
async function getViewOptions() {
view = await createView();
console.log('View created.');
await view.navigate('https://google.com');
console.log('View navigated to given url.');
const me = await fin.Window.getCurrent();
view = fin.View.wrapSync({ uuid: me.identity.uuid, name: 'viewNameGetOptions' });
return view.getOptions();
}
getViewOptions()
.then((info) => console.log('View options fetched.', info))
.catch(err => console.log(err));