FlexLayout
FlexLayout copied to clipboard
Detect tab changed and get selected Tab ID
Hi, is there anyway to get selected tab ID with onSelectedTabchange event?
do you specifically need to use onSelectedTabchange
? could you use the onAction
method
e.g.
<FlexLayout.Layout model={props.model} factory={componentFactory} onAction={(e)=>{console.log('action', e); return e;}}/>
the action object e
has a type field equal to "FlexLayout_SelectTab"
and the id of your selected tab
@wallaceturner thanks