Web/ForgeTrust.Runnable.Web.RazorWire/TagHelpers/RequiresStreamTagHelper.cs

RequiresStreamTagHelper

Type

RequiresStreamTagHelper

A TagHelper that marks an element as requiring a specific Turbo Stream to be established before becoming active.
Method

Process(TagHelperContext, TagHelperOutput)

Applies stream-requirement attributes and disables the element when a requires-stream value is present.
If is null or whitespace, the output is left unchanged. Otherwise adds the following attributes to the element: data-rw-requires-stream set to the valuearia-disabled to "true"disabled to "disabled" (only for supported form elements) The element is therefore disabled until client-side code removes or updates these attributes.