Class SidebarShell
public class SidebarShell : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IModalContext, IPageContext
- Inheritance
-
SidebarShell
- Implements
- Inherited Members
Properties
AppLogo
Displayed in the sidebar if present. Defaults to the Agile logo.
[Parameter]
public string? AppLogo { get; set; }
Property Value
AppTitle
Displayed in the sidebar if present. Defaults to Options.AppName.
[Parameter]
public string? AppTitle { get; set; }
Property Value
ChildContent
Slot for the page body (which should generally include a titlebar).
[Parameter]
public RenderFragment? ChildContent { get; set; }
Property Value
FooterText
[Parameter]
public string? FooterText { get; set; }
Property Value
ProductionEnvironmentName
Override the environment that's considered default for theming.
[Parameter]
public string ProductionEnvironmentName { get; set; }
Property Value
SidebarContent
Optional slot for content that goes in a sidebar, which is presented with customised link display.
[Parameter]
public RenderFragment? SidebarContent { 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
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()
OnParametersSet()
Method invoked when the component has received parameters from its parent in the render tree, and the incoming values have been assigned to properties.
protected override void OnParametersSet()
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.