39 references to TagRenderMode
Microsoft.AspNetCore.Mvc.TagHelpers (3)
InputTagHelper.cs (3)
333
var
renderingMode =
334
output.TagMode == TagMode.SelfClosing ?
TagRenderMode
.SelfClosing :
TagRenderMode
.StartTag;
Microsoft.AspNetCore.Mvc.TagHelpers.Test (8)
InputTagHelperTest.cs (3)
859
TagRenderMode =
TagRenderMode
.SelfClosing,
1184
TagRenderMode =
TagRenderMode
.SelfClosing
1200
.Returns(new TagBuilder("hidden") { TagRenderMode =
TagRenderMode
.SelfClosing })
RenderAtEndOfFormTagHelperTest.cs (4)
22
GetTagBuilder("input", "SomeName", "hidden", "false",
TagRenderMode
.SelfClosing)
29
GetTagBuilder("input", "SomeName", "hidden", "false",
TagRenderMode
.SelfClosing),
30
GetTagBuilder("input", "SomeOtherName", "hidden", "false",
TagRenderMode
.SelfClosing)
120
private static TagBuilder GetTagBuilder(string tag, string name, string type, string value,
TagRenderMode
mode)
TestableHtmlGenerator.cs (1)
106
tagBuilder.TagRenderMode =
TagRenderMode
.SelfClosing;
Microsoft.AspNetCore.Mvc.ViewFeatures (18)
DefaultDisplayTemplates.cs (1)
42
inputTag.TagRenderMode =
TagRenderMode
.SelfClosing;
DefaultHtmlGenerator.cs (2)
243
tagBuilder.TagRenderMode =
TagRenderMode
.SelfClosing;
1163
TagRenderMode =
TagRenderMode
.SelfClosing,
HtmlHelper.cs (2)
913
tagBuilder.TagRenderMode =
TagRenderMode
.StartTag;
969
tagBuilder.TagRenderMode =
TagRenderMode
.StartTag;
Rendering\TagBuilder.cs (13)
114
/// The <see cref="Rendering.
TagRenderMode
"/> with which the tag is written.
116
/// <remarks>Defaults to <see cref="
TagRenderMode
.Normal"/>.</remarks>
117
public
TagRenderMode
TagRenderMode { get; set; } =
TagRenderMode
.Normal;
338
public IHtmlContent RenderStartTag() => new RenderTagHtmlContent(this,
TagRenderMode
.StartTag);
344
public IHtmlContent RenderEndTag() => new RenderTagHtmlContent(this,
TagRenderMode
.EndTag);
350
public IHtmlContent RenderSelfClosingTag() => new RenderTagHtmlContent(this,
TagRenderMode
.SelfClosing);
356
TagRenderMode
tagRenderMode)
360
case
TagRenderMode
.StartTag:
366
case
TagRenderMode
.EndTag:
371
case
TagRenderMode
.SelfClosing:
402
private readonly
TagRenderMode
_tagRenderMode;
404
public RenderTagHtmlContent(TagBuilder tagBuilder,
TagRenderMode
tagRenderMode)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (10)
Rendering\HtmlHelperFormTest.cs (1)
351
tagBuilder.TagRenderMode =
TagRenderMode
.SelfClosing;
Rendering\TagBuilderTest.cs (9)
11
public static TheoryData<
TagRenderMode
, string> RenderingTestingData
15
return new TheoryData<
TagRenderMode
, string>
17
{
TagRenderMode
.StartTag, "<p>" },
18
{
TagRenderMode
.SelfClosing, "<p />" },
19
{
TagRenderMode
.Normal, "<p></p>" }
73
public void WriteTo_IgnoresIdAttributeCase(
TagRenderMode
renderingMode, string expectedOutput)
215
tagBuilder.TagRenderMode =
TagRenderMode
.EndTag;
243
tagBuilder.TagRenderMode =
TagRenderMode
.Normal;
285
originalTagBuilder.TagRenderMode =
TagRenderMode
.SelfClosing;