demo-reuse-tabs icon indicating copy to clipboard operation
demo-reuse-tabs copied to clipboard

while reusetabs can't read <PageTitle> content as tab header?

Open coader opened this issue 3 years ago • 7 comments

<PageTitle>Counter</PageTitle>

now only use url path as header by default , but it's always not what user want

coader avatar May 03 '22 11:05 coader

Hi @coader , please see https://github.com/ant-design-blazor/demo-reuse-tabs#more-options

ElderJames avatar May 03 '22 13:05 ElderJames

And https://github.com/ant-design-blazor/demo-reuse-tabs#customize-tab-title

ElderJames avatar May 03 '22 13:05 ElderJames

I didn't think there was any way to get the title in <PageTitle>, except to implement one myself, do you have any suggestions?

ElderJames avatar May 03 '22 13:05 ElderJames

Hello,

Actually, when user change (inside app) tab selection, the PageTitle of the tab browser stay "AntDesign ReuseTabs".

Is it possible that the PageTitle of the tab browser change and take into account the PageTitle tag when user change tab selection ? <PageTitle>Home</PageTitle> <PageTitle>Counter</PageTitle> <PageTitle>Fetch data</PageTitle>

That works when you click on NavLink but not when you click on ReuseTab.

NilkOne avatar May 06 '22 13:05 NilkOne

I make a mistake, tab header should not the same as page title, it's my fault, SPA will always keep page title and not change when switch tab

coader avatar May 06 '22 13:05 coader

ok np @coader, but how to deal with ReuseTab if I don't want an SPA but an hybride app (beetween SPA and MPA) ? in order to create a PWA that can open some page in separate window ?

NilkOne avatar May 06 '22 14:05 NilkOne

Hello @NilkOne , you can use iframe.

ElderJames avatar Apr 26 '24 02:04 ElderJames