MarkupOptions Class
Configures the HTML snapshots of the DOM.
public sealed class MarkupOptionsConstructors
| Name | Description |
|---|---|
| MarkupOptions() |
MarkupOptions()
MarkupOptions.cspublic MarkupOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Default | Gets the default options. |
| IncludeFormState | Gets whether the state of the form fields is written as attributes: the value of the text fields (value), the state of the check boxes and radio buttons (checked) and the selected options (selected). Blazor sets these properties, not the attributes, so they are not in the DOM otherwise. The default is true. |
| Indent | Gets whether the HTML is indented, one element per line. The default is true. |
| RemoveElementReferenceAttributes | Gets whether the _bl_* attributes, which identify the elements of the element references, are removed. The default is true. |
| RemoveScopedCssAttributes | Gets whether the b-* attributes of the CSS isolation are removed. The default is false. |
Default
MarkupOptions.csIncludeFormState
MarkupOptions.csGets whether the state of the form fields is written as attributes: the value of the text fields (value), the state of the check boxes and radio buttons (checked) and the selected options (selected). Blazor sets these properties, not the attributes, so they are not in the DOM otherwise. The default is true.
public bool IncludeFormState { get; init; }