Exemplo n.º 1
0
 /// <summary>
 /// Creates a ChildContent <see cref="Microsoft.AspNetCore.Components.RenderFragment"/> which will render a <typeparamref name="TComponent"/> component
 /// with the provided <paramref name="parameters"/> as input.
 /// </summary>
 /// <typeparam name="TComponent">The type of the component to render with the <see cref="Microsoft.AspNetCore.Components.RenderFragment"/></typeparam>
 /// <param name="parameters">Parameters to pass to the <typeparamref name="TComponent"/>.</param>
 /// <returns>The <see cref="ComponentParameter"/>.</returns>
 protected static ComponentParameter ChildContent <TComponent>(params ComponentParameter[] parameters) where TComponent : class, IComponent
 => ComponentParameterFactory.ChildContent <TComponent>(parameters);
Exemplo n.º 2
0
 /// <summary>
 /// Creates a ChildContent <see cref="Microsoft.AspNetCore.Components.RenderFragment"/> with the provided
 /// <paramref name="markup"/> as rendered output.
 /// </summary>
 /// <param name="markup">Markup to pass to the child content parameter</param>
 /// <returns>The <see cref="ComponentParameter"/>.</returns>
 protected static ComponentParameter ChildContent(string markup)
 => ComponentParameterFactory.ChildContent(markup);