зеркало из https://github.com/telerik/blazor-docs.git
724 B
724 B
#define-in-teleriklayout
- Create a new layout file in the app, for example,
TelerikLayout.razor
. - Place the new layout in the same folder as the default application layout
MainLayout.razor
. - Add a
<TelerikRootComponent>
tag to the new layout and set@Body
as the root component's child content. - Make the new layout a parent of the default application layout.
caption Adding TelerikRootComponent to a new layout
@inherits LayoutComponentBase
<TelerikRootComponent>
@Body
</TelerikRootComponent>
@inherits LayoutComponentBase
@layout TelerikLayout
@* The other MainLayout.razor content remains the same. *@
#end