Skip to content

Commit

Permalink
Add xmldoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarmil committed Jan 3, 2024
1 parent d4836e9 commit 9bf43ed
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Bolero.Server/Html.fs
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,18 @@ module Html =
let doctypeHtml = DoctypeHtmlBuilder()

#if NET8_0_OR_GREATER
/// HTML attributes.
module attr =

/// <summary>
/// Define the render mode to use for this component.
/// Must be used on a component in a server-side page that uses interactive render modes.
/// </summary>
/// <param name="mode">
/// The render mode.
/// Usually one of the modes defined in <see cref="T:Microsoft.AspNetCore.Components.Web.RenderMode"/>.
/// </param>
/// <seealso cref="M:Bolero.Server.ServerComponentsExtensions.AddBoleroComponents(Microsoft.Extensions.DependencyInjection.IServiceCollection)"/>
let renderMode (mode: IComponentRenderMode) =
Attr(fun _ b i ->
b.AddComponentRenderMode(mode)
Expand Down

0 comments on commit 9bf43ed

Please sign in to comment.