Tutorial: TabStack.setActiveView

TabStack.setActiveView

Changes the active view of a TabStack without focusing it.

Change the active tab of a known View's TabStack

const targetView = fin.view.wrapSync({ uuid: 'uuid', name: 'view-name' });
const stack = await targetView.getCurrentStack();
await stack.setActiveView(targetView.identity);

Set the current View as active within its TabStack

const stack = await fin.me.getCurrentStack();
await stack.setActiveView(fin.me.identity);