FlexLayout icon indicating copy to clipboard operation
FlexLayout copied to clipboard

Detect tab changed and get selected Tab ID

Open flyscripts opened this issue 5 years ago • 2 comments

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

flyscripts avatar Mar 02 '20 14:03 flyscripts

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

flyscripts avatar Mar 17 '20 15:03 flyscripts