ant-design-blazor / ant-design-blazor

🌈A set of enterprise-class UI components based on Ant Design and Blazor.

Home Page:https://antblazor.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The ReuseTabs component supports fetching title information from menu.json

JaneConan opened this issue · comments

Is your feature request related to a problem? Please describe.

I am trying to do simple route to reuse pages, but we found that we still need to add

 @attribute [ReuseTabsPageTitle(“display name”)] 

to every page to display the custom name we want.

Describe the solution you'd like

So we need the ReuseTabs component could to supports fetching title information from menu.json.

It's not just every page that needs to have an attribute.

For pages without menus, it's still possible to set them dynamically. I.e. the default name can still be current path, consistent with the present.

Additional context

image

We need to show the name or other field in menu.json, not the current path.

Of course if you approve of this feature, I can submit a PR based on your proposal after you have finalized it.

Thanks a lot.