os-js / osjs-gui

OS.js GUI Module

Home Page:https://manual.os-js.org/v3/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tab selection callback

andersevenrud opened this issue · comments

From Gitter chat:

@SpaceboyRoss01

how do i know if the tab is switched for the Tab component

There doesn't seem to be an event for that. Could probably use onchange so you can create an action for it and store it in your state.

I've published a new @osjs/gui release now.

You can use onchage: (ev, index, label) => {]