207 references to AddAttribute
Microsoft.AspNetCore.Components.AI (63)
Components\ChatPage.cs (5)
73builder.AddAttribute(2, "class", CssClass()); 78builder.AddAttribute(11, "class", "sc-ai-chat-page__header"); 89inner.AddAttribute(31, "class", "sc-ai-chat-page__body"); 100inner.AddAttribute(51, "class", "sc-ai-chat-page__footer"); 102inner.AddAttribute(53, "class", "sc-ai-chat-page__input-container");
Components\ConversationTurnRenderer.cs (1)
56builder.AddAttribute(baseSeq + 1, "class", $"sc-ai-turn sc-ai-turn--{role}");
Components\MessageInput.cs (9)
81builder.AddAttribute(1, "class", "sc-ai-input"); 89builder.AddAttribute(4, "class", "sc-ai-input__body"); 92builder.AddAttribute(11, "class", "sc-ai-input__textarea"); 93builder.AddAttribute(12, "placeholder", _placeholder ?? "Type a message..."); 95builder.AddAttribute(14, "value", _text); 96builder.AddAttribute(15, "aria-label", _placeholder ?? "Type a message..."); 121builder.AddAttribute(51, "type", "button"); 122builder.AddAttribute(52, "class", "sc-ai-input__send"); 124builder.AddAttribute(54, "aria-label", "Send message");
Components\MessageList.cs (11)
105inner.AddAttribute(3, "class", "sc-ai-message-list"); 124inner.AddAttribute(seq + 1, "class", "sc-ai-message-list__footer"); 147builder.AddAttribute(seq + 1, "class", "sc-ai-typing"); 148builder.AddAttribute(seq + 2, "role", "status"); 149builder.AddAttribute(seq + 3, "aria-label", "Agent is typing"); 153builder.AddAttribute(seq + 7 + i, "class", "sc-ai-typing__dot"); 161builder.AddAttribute(seq + 1, "class", "sc-ai-error"); 162builder.AddAttribute(seq + 2, "role", "alert"); 164builder.AddAttribute(seq + 4, "class", "sc-ai-error__message"); 168builder.AddAttribute(seq + 7, "type", "button"); 169builder.AddAttribute(seq + 8, "class", "sc-ai-btn sc-ai-btn--secondary");
Components\MessageListContext.cs (37)
49builder.AddAttribute(1, "class", $"sc-ai-message sc-ai-message--{role}"); 51builder.AddAttribute(3, "class", "sc-ai-message__bubble"); 56builder.AddAttribute(5, "class", contentClass); 76builder.AddAttribute(1, "class", "sc-ai-unknown-block"); 137builder.AddAttribute(1, "class", "sc-ai-rich-text__inline-code"); 143builder.AddAttribute(1, "class", "sc-ai-rich-text__code-block"); 147builder.AddAttribute(3, "data-language", codeBlock.Language); 162builder.AddAttribute(1, "class", "sc-ai-rich-text__thematic-break"); 167builder.AddAttribute(1, "class", "sc-ai-rich-text__list"); 177builder.AddAttribute(1, "class", "sc-ai-rich-text__list-item"); 181builder.AddAttribute(3, "type", "checkbox"); 200builder.AddAttribute(1, "class", "sc-ai-rich-text__definition"); 209builder.AddAttribute(1, "class", "sc-ai-rich-text__image-reference"); 218builder.AddAttribute(1, "class", "sc-ai-rich-text__footnote-reference"); 224builder.AddAttribute(1, "class", "sc-ai-rich-text__footnote-definition"); 225builder.AddAttribute(2, "data-label", footnoteDefinition.Label); 231builder.AddAttribute(1, "class", "sc-ai-rich-text__html"); 257builder.AddAttribute(1, "class", className); 273builder.AddAttribute(1, "href", safeUrl); 276builder.AddAttribute(2, "title", link.Title); 292builder.AddAttribute(1, "src", safeUrl); 293builder.AddAttribute(2, "alt", image.Alt ?? string.Empty); 296builder.AddAttribute(3, "title", image.Title); 307builder.AddAttribute(1, "class", "sc-ai-rich-text__link-reference"); 322builder.AddAttribute(1, "class", "sc-ai-rich-text__table-container"); 324builder.AddAttribute(3, "class", "sc-ai-rich-text__table"); 349builder.AddAttribute( 394builder.AddAttribute(1, "class", "sc-ai-approval"); 397builder.AddAttribute(3, "class", "sc-ai-approval__header"); 402builder.AddAttribute(6, "class", "sc-ai-approval__tool-name"); 409builder.AddAttribute(9, "class", "sc-ai-approval__arguments"); 417builder.AddAttribute(12, "class", "sc-ai-approval__actions"); 420builder.AddAttribute(14, "type", "button"); 421builder.AddAttribute(15, "class", "sc-ai-btn sc-ai-btn--primary"); 427builder.AddAttribute(19, "type", "button"); 428builder.AddAttribute(20, "class", "sc-ai-btn sc-ai-btn--secondary"); 439builder.AddAttribute(
Microsoft.AspNetCore.Components.Endpoints (9)
Assets\ImportMap.cs (1)
64builder.AddAttribute(1, "type", "importmap");
Assets\ResourcePreloader.cs (6)
55builder.AddAttribute(1, "href", asset.Url); 56builder.AddAttribute(2, "rel", asset.PreloadRel); 59builder.AddAttribute(3, "as", asset.PreloadAs); 63builder.AddAttribute(4, "fetchpriority", asset.PreloadPriority); 67builder.AddAttribute(5, "crossorigin", asset.PreloadCrossorigin); 71builder.AddAttribute(6, "integrity", asset.Integrity);
Forms\DataAnnotationsClientValidationProvider.cs (1)
55builder.AddAttribute(1, "data-rules", json);
Routing\BasePath.cs (1)
32builder.AddAttribute(1, "href", ComputeHref());
Microsoft.AspNetCore.Components.Media (12)
FileDownload.cs (4)
62builder.AddAttribute(1, "data-blazor-file-download", ""); 66builder.AddAttribute(2, "data-state", "loading"); 70builder.AddAttribute(2, "data-state", "error"); 73builder.AddAttribute(3, "href", "javascript:void(0)");
Image.cs (4)
50builder.AddAttribute(1, TargetAttributeName, _currentObjectUrl); 53builder.AddAttribute(2, "data-blazor-image", ""); 58builder.AddAttribute(3, "data-state", "loading"); 62builder.AddAttribute(3, "data-state", "error");
Video.cs (4)
50builder.AddAttribute(1, TargetAttributeName, _currentObjectUrl); 53builder.AddAttribute(2, "data-blazor-video", ""); 58builder.AddAttribute(3, "data-state", "loading"); 62builder.AddAttribute(3, "data-state", "error");
Microsoft.AspNetCore.Components.QuickGrid (73)
_generated\0\ColumnBase_razor.g.cs (16)
117__builder.AddAttribute(2, "class", "col-options-button"); 118__builder.AddAttribute(3, "type", "button"); 119__builder.AddAttribute(4, "title", "Column options"); 161__builder.AddAttribute(8, "class", "col-title"); 162__builder.AddAttribute(9, "href", 173__builder.AddAttribute(12, "class", "col-title-text"); 197__builder.AddAttribute(17, "class", "col-title"); 198__builder.AddAttribute(18, "type", "button"); 210__builder.AddAttribute(22, "class", "col-title-text"); 234__builder.AddAttribute(27, "class", "col-title"); 237__builder.AddAttribute(30, "class", "col-title-text"); 269__builder.AddAttribute(34, "class", "col-title"); 272__builder.AddAttribute(37, "class", "col-title-text"); 304__builder.AddAttribute(41, "class", "col-options-button"); 305__builder.AddAttribute(42, "type", "button"); 306__builder.AddAttribute(43, "title", "Column options");
_generated\1\Paginator_razor.g.cs (45)
35__builder.AddAttribute(1, "class", "paginator"); 55__builder.AddAttribute(4, "class", "summary"); 119__builder.AddAttribute(13, "role", "navigation"); 139__builder.AddAttribute(16, "class", "go-first"); 140__builder.AddAttribute(17, "href", 149__builder.AddAttribute(18, "title", "Go to first page"); 150__builder.AddAttribute(19, "aria-label", "Go to first page"); 151__builder.AddAttribute(20, "aria-disabled", 160__builder.AddAttribute(21, "tabindex", 174__builder.AddAttribute(26, "class", "go-previous"); 175__builder.AddAttribute(27, "href", 184__builder.AddAttribute(28, "title", "Go to previous page"); 185__builder.AddAttribute(29, "aria-label", "Go to previous page"); 186__builder.AddAttribute(30, "aria-disabled", 195__builder.AddAttribute(31, "tabindex", 209__builder.AddAttribute(36, "class", "pagination-text"); 238__builder.AddAttribute(48, "class", "go-next"); 239__builder.AddAttribute(49, "href", 248__builder.AddAttribute(50, "title", "Go to next page"); 249__builder.AddAttribute(51, "aria-label", "Go to next page"); 250__builder.AddAttribute(52, "aria-disabled", 259__builder.AddAttribute(53, "tabindex", 273__builder.AddAttribute(58, "class", "go-last"); 274__builder.AddAttribute(59, "href", 283__builder.AddAttribute(60, "title", "Go to last page"); 284__builder.AddAttribute(61, "aria-label", "Go to last page"); 285__builder.AddAttribute(62, "aria-disabled", 294__builder.AddAttribute(63, "tabindex", 317__builder.AddAttribute(67, "class", "go-first"); 318__builder.AddAttribute(68, "type", "button"); 337__builder.AddAttribute(71, "title", "Go to first page"); 338__builder.AddAttribute(72, "aria-label", "Go to first page"); 343__builder.AddAttribute(76, "class", "go-previous"); 344__builder.AddAttribute(77, "type", "button"); 363__builder.AddAttribute(80, "title", "Go to previous page"); 364__builder.AddAttribute(81, "aria-label", "Go to previous page"); 369__builder.AddAttribute(85, "class", "pagination-text"); 398__builder.AddAttribute(97, "class", "go-next"); 399__builder.AddAttribute(98, "type", "button"); 418__builder.AddAttribute(101, "title", "Go to next page"); 419__builder.AddAttribute(102, "aria-label", "Go to next page"); 424__builder.AddAttribute(106, "class", "go-last"); 425__builder.AddAttribute(107, "type", "button"); 444__builder.AddAttribute(110, "title", "Go to last page"); 445__builder.AddAttribute(111, "aria-label", "Go to last page");
_generated\2\QuickGrid_razor.g.cs (12)
152__builder3.AddAttribute(11, "theme", 188__builder3.AddAttribute(15, "class", 457__builder.AddAttribute(39, "class", 516__builder.AddAttribute(43, "class", 563__builder.AddAttribute(47, "class", 622__builder.AddAttribute(51, "data-blazor-virtualize-reserved-height", 650__builder.AddAttribute(54, "class", "grid-cell-placeholder" + " " + ( 702__builder.AddAttribute(57, "class", 711__builder.AddAttribute(58, "aria-sort", 720__builder.AddAttribute(59, "scope", "col"); 733__builder.AddAttribute(62, "class", "col-header-content"); 762__builder.AddAttribute(66, "class", "col-options");
Microsoft.AspNetCore.Components.Web (50)
Forms\AntiforgeryToken.cs (3)
44builder.AddAttribute(1, "type", "hidden"); 45builder.AddAttribute(2, "name", _requestToken!.FormFieldName); 46builder.AddAttribute(3, "value", _requestToken.Value);
Forms\EditForm.cs (2)
144builder.AddAttribute(2, "method", "post"); 149builder.AddAttribute(3, "data-enhance", "");
Forms\InputCheckbox.cs (3)
36builder.AddAttribute(2, "type", "checkbox"); 39builder.AddAttribute(5, "class", CssClass); 44builder.AddAttribute(7, "value", bool.TrueString);
Forms\InputDate.cs (3)
88builder.AddAttribute(2, "type", _typeAttributeValue); 91builder.AddAttribute(5, "class", CssClass); 92builder.AddAttribute(6, "value", CurrentValueAsString);
Forms\InputFile.cs (1)
62builder.AddAttribute(2, "type", "file");
Forms\InputHidden.cs (2)
26builder.AddAttribute(1, "type", "hidden"); 31builder.AddAttribute(6, "value", CurrentValueAsString);
Forms\InputNumber.cs (3)
55builder.AddAttribute(1, "step", _stepAttributeValue); 56builder.AddAttribute(2, "type", "number"); 61builder.AddAttribute(7, "value", CurrentValueAsString);
Forms\InputRadio.cs (4)
68builder.AddAttribute(3, "type", "radio"); 69builder.AddAttribute(4, "name", Context.GroupName); 70builder.AddAttribute(5, "value", BindConverter.FormatValue(Value?.ToString())); 71builder.AddAttribute(6, "checked", Context.CurrentValue?.Equals(Value) == true ? GetToggledTrueValue() : null);
Forms\InputSelect.cs (2)
50builder.AddAttribute(6, "value", BindConverter.FormatValue(CurrentValue)?.ToString()); 56builder.AddAttribute(8, "value", CurrentValueAsString);
Forms\InputText.cs (1)
39builder.AddAttribute(5, "value", CurrentValueAsString);
Forms\InputTextArea.cs (1)
39builder.AddAttribute(5, "value", CurrentValueAsString);
Forms\Label.cs (1)
114builder.AddAttribute(1, "for", _fieldId);
Forms\RenderTreeBuilderExtensions.cs (1)
15builder.AddAttribute(sequence, name, value);
Forms\ValidationMessage.cs (7)
90builder.AddAttribute(1, "class", "validation-message"); 105builder.AddAttribute(1, "class", "validation-message"); 110builder.AddAttribute(2, "data-valmsg-for", fieldName); 111builder.AddAttribute(3, "data-valmsg-replace", "true"); 124builder.AddAttribute(1, "class", "validation-message"); 125builder.AddAttribute(2, "data-valmsg-for", fieldName); 126builder.AddAttribute(3, "data-valmsg-replace", "true");
Forms\ValidationSummary.cs (5)
91builder.AddAttribute(1, "class", "validation-errors"); 96builder.AddAttribute(4, "class", "validation-message"); 117builder.AddAttribute(1, "class", hasErrors 121builder.AddAttribute(3, "data-valmsg-summary", "true"); 133builder.AddAttribute(6, "class", "validation-message");
Routing\FocusOnNavigate.cs (1)
70builder.AddAttribute(1, "selector", Selector);
Routing\NavLink.cs (3)
237builder.AddAttribute(2, "href", _hrefToRender); 239builder.AddAttribute(3, "class", CssClass); 242builder.AddAttribute(4, "aria-current", "page");
Virtualization\Virtualize.cs (6)
555builder.AddAttribute(1, "data-blazor-virtualize-reserved-height", GetSpacerHeightPx(_itemsBefore)); 556builder.AddAttribute(2, "aria-hidden", "true"); 623builder.AddAttribute(8, "aria-hidden", "true"); 624builder.AddAttribute(9, "data-blazor-virtualize-reserved-height", GetSpacerHeightPx(itemsAfter)); 627builder.AddAttribute(10, "data-blazor-virtualize-loop-breaker-transform", GetSpacerHeightPx(_unusedItemCapacity)); 1101builder.AddAttribute(1, "data-blazor-virtualize-reserved-height", GetSpacerHeightPx(1));
Web\ErrorBoundary.cs (1)
48builder.AddAttribute(3, "class", "blazor-error-boundary");