34 references to Attributes
Microsoft.AspNetCore.Mvc.TagHelpers (4)
InputTagHelper.cs (2)
256
if (tagBuilder.
Attributes
.TryGetValue("name", out var fullName) &&
336
if (!hiddenForCheckboxTag.
Attributes
.ContainsKey("name") &&
TagHelperOutputExtensions.cs (2)
78
/// Merges the given <paramref name="tagBuilder"/>'s <see cref="TagBuilder.
Attributes
"/> into the
90
foreach (var attribute in tagBuilder.
Attributes
)
Microsoft.AspNetCore.Mvc.ViewFeatures (30)
DefaultDisplayTemplates.cs (4)
35
inputTag.
Attributes
["disabled"] = "disabled";
36
inputTag.
Attributes
["type"] = "checkbox";
39
inputTag.
Attributes
["checked"] = "checked";
51
selectTag.
Attributes
["disabled"] = "disabled";
DefaultHtmlGenerator.cs (6)
390
tagBuilder.
Attributes
.Add("for", idString);
1048
tagBuilder.
Attributes
["value"] = item.Value;
1053
tagBuilder.
Attributes
["selected"] = "selected";
1058
tagBuilder.
Attributes
["disabled"] = "disabled";
1173
var suppliedTypeString = tagBuilder.
Attributes
["type"];
1380
tagBuilder.
Attributes
);
DefaultHtmlGeneratorExtensions.cs (2)
40
tagBuilder.
Attributes
["action"] += "#" + fragment;
71
tagBuilder.
Attributes
["action"] += "#" + fragment;
HtmlHelper.cs (5)
743
if (!hiddenForCheckbox.
Attributes
.ContainsKey("name") &&
744
checkbox.
Attributes
.TryGetValue("name", out var name))
1063
if (tagBuilder.
Attributes
.Count == 0)
1068
else if (tagBuilder.
Attributes
.Count == 1 &&
1069
tagBuilder.
Attributes
.TryGetValue("for", out var forAttribute) &&
NameAndIdProvider.cs (3)
75
/// nothing if <see cref="TagBuilder.
Attributes
"/> already contains an "id" attribute or the
106
if (!tagBuilder.
Attributes
.ContainsKey("id"))
114
tagBuilder.
Attributes
["id"] = sanitizedId;
Rendering\TagBuilder.cs (10)
57
Attributes
.Add(tag);
127
if (
Attributes
.TryGetValue("class", out var currentValue))
129
Attributes
["class"] = currentValue + " " + value;
133
Attributes
["class"] = value;
201
/// nothing if <see cref="
Attributes
"/> already contains an "id" attribute or the <paramref name="name"/>
221
if (!
Attributes
.ContainsKey("id"))
229
Attributes
["id"] = sanitizedId;
239
foreach (var attribute in
Attributes
)
281
if (replaceExisting || !
Attributes
.ContainsKey(key))
283
Attributes
[key] = value;