FlexLayout icon indicating copy to clipboard operation
FlexLayout copied to clipboard

Detect tab changed and get selected Tab ID

Open spider58 opened this issue 4 years ago • 2 comments

Hi, is there anyway to get selected tab ID with onSelectedTabchange event?

spider58 avatar Mar 02 '20 14:03 spider58

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 avatar Mar 17 '20 03:03 wallaceturner

@wallaceturner thanks

spider58 avatar Mar 17 '20 15:03 spider58