Class ResponsiveShell
public class ResponsiveShell : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IModalContext, IPageContext, IDisposable
- Inheritance
-
ResponsiveShell
- Implements
- Inherited Members
Properties
AppTitle
[Parameter]
public string? AppTitle { get; set; }
Property Value
ChildContent
[Parameter]
public RenderFragment? ChildContent { get; set; }
Property Value
DisableCompactPageTitles
[Parameter]
public bool DisableCompactPageTitles { get; set; }
Property Value
Footer
[Parameter]
public MenuModel? Footer { get; set; }
Property Value
Menu
[Parameter]
public IReadOnlyList<MenuModel> Menu { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builderRenderTreeBuilder
ClearPage(bool)
public void ClearPage(bool isRoot)
Parameters
isRootbool
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
OnInitialized()
Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.
protected override void OnInitialized()
PushModal(string, RenderFragment)
Open a modal with respect to the current page.
public void PushModal(string title, RenderFragment content)
Parameters
titlestringcontentRenderFragment
SetCommands(CommandContext?)
public void SetCommands(CommandContext? commandContext)
Parameters
commandContextCommandContextNull if no commands.
SetPage(string?, bool)
public void SetPage(string? title, bool requiresVerticalConstraint)
Parameters
titlestringNull if the title is still being loaded.
requiresVerticalConstraintboolForce internal scrolling.
SuppressChrome(bool)
If true, an external shell will display the page's title and commands, so the page itself should just present content.
public bool SuppressChrome(bool isRoot)
Parameters
isRootbool
Returns
TryPopModal(string)
Close the current modal, if it is really open.
public bool TryPopModal(string title)
Parameters
titlestring
Returns
Remarks
If it isn't, that's a bug in the modal router, but we want it to be recoverable.