Table of Contents

Class ResponsiveShell

Namespace
The.Web.Shell
Assembly
Instagile.Web.Client.dll
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

string

ChildContent

[Parameter]
public RenderFragment? ChildContent { get; set; }

Property Value

RenderFragment

DisableCompactPageTitles

[Parameter]
public bool DisableCompactPageTitles { get; set; }

Property Value

bool
[Parameter]
public MenuModel? Footer { get; set; }

Property Value

MenuModel

Menu

[Parameter]
public IReadOnlyList<MenuModel> Menu { get; set; }

Property Value

IReadOnlyList<MenuModel>

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

ClearPage(bool)

public void ClearPage(bool isRoot)

Parameters

isRoot bool

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

title string
content RenderFragment

SetCommands(CommandContext?)

public void SetCommands(CommandContext? commandContext)

Parameters

commandContext CommandContext

Null if no commands.

SetPage(string?, bool)

public void SetPage(string? title, bool requiresVerticalConstraint)

Parameters

title string

Null if the title is still being loaded.

requiresVerticalConstraint bool

Force 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

isRoot bool

Returns

bool

TryPopModal(string)

Close the current modal, if it is really open.

public bool TryPopModal(string title)

Parameters

title string

Returns

bool

Remarks

If it isn't, that's a bug in the modal router, but we want it to be recoverable.