Web/ForgeTrust.Runnable.Web.RazorWire/Bridge/RazorWireStreamBuilder.cs
RazorWireStreamBuilder
Type
RazorWireStreamBuilder
A fluent builder for creating Turbo Stream responses.
Method
Append(string, string)
Queues an append action that inserts the provided HTML into the specified target element.
Method
AppendPartial(string, string, object?)
Queues an action to append the rendered partial view to the specified DOM target.
Method
Prepend(string, string)
Queues a raw HTML prepend action targeting the specified DOM element.
Method
PrependPartial(string, string, object?)
Queues an action to prepend the rendered partial view into the specified DOM target.
Method
Replace(string, string)
Queues a raw HTML replace action targeting the specified DOM element.
Method
ReplacePartial(string, string, object?)
Queues a partial view to replace the contents of the specified DOM target with the rendered partial.
Method
Update(string, string)
Queues a raw HTML "update" turbo-stream action for the specified DOM target using the provided HTML template.
Method
UpdatePartial(string, string, object?)
Queues an "update" turbo-stream action that renders the specified partial view into the given target element.
Method
AppendComponent<T>(string, object?)
Queues an append action that will render the specified view component into the given DOM target.
Method
PrependComponent<T>(string, object?)
Queues a view component render action that will prepend the component's output into the specified DOM target.
Method
ReplaceComponent<T>(string, object?)
Queues a view component replace action targeting the specified DOM element.
Method
UpdateComponent<T>(string, object?)
Queues an "update" turbo-stream action that renders the specified view component type into the given target element.
Method
AppendComponent(string, string, object?)
Queues an "append" turbo-stream action that will render the specified view component (by name) into the given target element.
Method
PrependComponent(string, string, object?)
Queues a view component prepend action targeting a DOM element by name.
Method
ReplaceComponent(string, string, object?)
Queue a replace action that renders the specified view component by name into the given DOM target.
Method
UpdateComponent(string, string, object?)
Queues a view component update action for a named view component.
Method
Remove(string)
Queues a remove action targeting the specified DOM element.
Method
Build()
Builds a single concatenated Turbo Stream markup string from the queued raw HTML actions.
Method
RenderAsync(Microsoft.AspNetCore.Mvc.Rendering.ViewContext, CancellationToken)
Renders all queued stream actions using the provided ViewContext and concatenates their rendered HTML into a single string.
Method
BuildResult()
Creates a containing the builder's queued stream actions and associated controller.
Method
RenderAsync(Microsoft.AspNetCore.Mvc.Rendering.ViewContext, CancellationToken)
Renders the action as a turbo-stream HTML string.