20 references to AddAttribute
Microsoft.AspNetCore.Components.Tests (12)
RendererTest.cs (7)
3122
builder.
AddAttribute
(1, "onchange", EventCallback.Factory.CreateBinder(
3161
builder.
AddAttribute
(1, "onchange", EventCallback.Factory.CreateBinder(
3195
builder.
AddAttribute
(1, "onchange", EventCallback.Factory.CreateBinder(
3235
builder.
AddAttribute
(1, "onchange", EventCallback.Factory.CreateBinder(
5337
builder.
AddAttribute
(4, "onclick", OnClickEventCallbackOfT);
5489
builder.
AddAttribute
(3, "onchange", EventCallback.Factory.CreateBinder<bool>(this, __value => CheckboxEnabled = __value, CheckboxEnabled));
5493
builder.
AddAttribute
(6, "onchange", EventCallback.Factory.CreateBinder<string>(this, __value => SomeStringProperty = __value, SomeStringProperty));
Rendering\RenderTreeBuilderTest.cs (5)
1278
builder.
AddAttribute
(1, "attr", callback);
1297
builder.
AddAttribute
(1, "attr", callback);
1316
builder.
AddAttribute
(1, "attr", callback);
1336
builder.
AddAttribute
(1, "attr", callback);
2007
builder.
AddAttribute
(0, "6", default(EventCallback<string>)); // Replace with a 'silent' EventCallback<string>
Microsoft.AspNetCore.Components.Web (8)
Forms\InputCheckbox.cs (1)
45
builder.
AddAttribute
(7, "onchange", EventCallback.Factory.CreateBinder<bool>(this, __value => CurrentValue = __value, CurrentValue));
Forms\InputDate.cs (1)
92
builder.
AddAttribute
(6, "onchange", EventCallback.Factory.CreateBinder<string?>(this, __value => CurrentValueAsString = __value, CurrentValueAsString));
Forms\InputNumber.cs (1)
61
builder.
AddAttribute
(7, "onchange", EventCallback.Factory.CreateBinder<string?>(this, __value => CurrentValueAsString = __value, CurrentValueAsString));
Forms\InputRadio.cs (1)
72
builder.
AddAttribute
(7, "onchange", Context.ChangeEventCallback);
Forms\InputSelect.cs (2)
50
builder.
AddAttribute
(6, "onchange", EventCallback.Factory.CreateBinder<string?[]?>(this, SetCurrentValueAsStringArray, default));
56
builder.
AddAttribute
(8, "onchange", EventCallback.Factory.CreateBinder<string?>(this, __value => CurrentValueAsString = __value, default));
Forms\InputText.cs (1)
39
builder.
AddAttribute
(5, "onchange", EventCallback.Factory.CreateBinder<string?>(this, __value => CurrentValueAsString = __value, CurrentValueAsString));
Forms\InputTextArea.cs (1)
39
builder.
AddAttribute
(5, "onchange", EventCallback.Factory.CreateBinder<string?>(this, __value => CurrentValueAsString = __value, CurrentValueAsString));