caplin / FlexLayout

Docking Layout Manager for React
MIT License
938 stars 175 forks source link

[Feature Request] Add placeholder for empty TabSet #301

Closed Lonli-Lokli closed 2 years ago

Lonli-Lokli commented 2 years ago

Hi, thx for great package!

We have a situation when would like to display placeholder instead of empty TabSet on very ffirst applicaation startup. So when any tabt will be added to any tabset, we will hide placeholder and display current node.

Is it possibe to archieve now? And can it be implemented as an option?

I see there is renderValues.headerContent as onRenderTabSet, but it's appears to be only header part

nealus commented 2 years ago

I've added an onTabPlaceHolder prop that will render in the tab area when a tabset is empty.

Lonli-Lokli commented 2 years ago

Thanks, will wait for release!

Btw, does it make sense to rename it to onTabsetPlaceHolder?

nealus commented 2 years ago

fixed in 0.6.8