RenderOptions Class

Where a root component is rendered. The default is the body of the page (a new div for the next root components).

public sealed class RenderOptions

Constructors

NameDescription
RenderOptions()

RenderOptions()

public RenderOptions()

No documentation is available.

Properties

NameDescription
ContainerGets the element that hosts the component: its children are replaced by the output of the component.
ContainerSelectorGets the CSS selector of the element that hosts the component (for instance #app of the host page).

Gets the element that hosts the component: its children are replaced by the output of the component.

public Element? Container { get; init; }

Property value

Element?

ContainerSelector

RenderOptions.cs

Gets the CSS selector of the element that hosts the component (for instance #app of the host page).

public string? ContainerSelector { get; init; }

Property value

string?