Class Portal
Portals provide a first-class way to render children into a DOM node that exists outside the DOM hierarchy of the parent component
Namespace: Neon.Tailwind
Assembly: Neon.Tailwind.dll
Syntax
public class Portal : ComponentBase
Properties
Name
The name of the Portal.
Declaration
[Parameter]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
PortalBinder
The injected IPortalBinder.
Declaration
[Inject]
public IPortalBinder PortalBinder { get; set; }
Property Value
Type | Description |
---|---|
IPortalBinder |
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
Declaration
protected override void BuildRenderTree(RenderTreeBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
RenderTreeBuilder | builder | A RenderTreeBuilder that will receive the render output. |
Overrides
OnInitialized()
Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.
Declaration
protected override void OnInitialized()
Overrides
RenderContent(RenderFragment)
Renders the RenderFragment.
Declaration
public void RenderContent(RenderFragment content)
Parameters
Type | Name | Description |
---|---|---|
RenderFragment | content |