28 references to AddNamedEvent
Microsoft.AspNetCore.Components.Endpoints.Tests (7)
EndpointHtmlRendererTest.cs (7)
984builder.AddNamedEvent("onsubmit", "my-name"); 1018builder.AddNamedEvent("onsubmit", firstRender ? "my-name-1" : "my-name-2"); 1510builder.AddNamedEvent("onsubmit", "default"); 1525builder.AddNamedEvent("onsubmit", "default"); 1530builder.AddNamedEvent("onsubmit", "default"); 1555builder.AddNamedEvent("onsubmit", "default"); 1572builder.AddNamedEvent("onsubmit", "default");
Microsoft.AspNetCore.Components.Tests (16)
Rendering\RenderTreeBuilderTest.cs (6)
2192builder.AddNamedEvent("myeventtype", "my event name"); 2213builder.AddNamedEvent("x", "y"); 2228builder.AddNamedEvent(null, "assigned name"); 2243builder.AddNamedEvent("eventtype", null); 2258builder.AddNamedEvent("eventtype", ""); 2269builder.AddNamedEvent("someevent", "somename");
RenderTreeDiffBuilderTest.cs (10)
2228newTree.AddNamedEvent("someevent1", "added to existing element"); 2231newTree.AddNamedEvent("someevent2", "added with new element"); 2255oldTree.AddNamedEvent("someevent1", "removing from retained element"); 2258oldTree.AddNamedEvent("someevent2", "removed because element was removed"); 2280oldTree.AddNamedEvent("eventname", "assigned name"); 2285newTree.AddNamedEvent("eventname", "assigned name"); 2308oldTree.AddNamedEvent("eventname1", "original name"); 2309oldTree.AddNamedEvent("eventname2", "will be left unchanged"); 2313newTree.AddNamedEvent("eventname1", "changed name"); 2314newTree.AddNamedEvent("eventname2", "will be left unchanged");
Microsoft.AspNetCore.Components.Web (1)
Forms\EditForm.cs (1)
161builder.AddNamedEvent("onsubmit", FormName);
Microsoft.AspNetCore.Components.Web.Tests (4)
HtmlRendering\HtmlRendererTest.cs (4)
1019rtb.AddNamedEvent("someevent", "somename"); 1042rtb.AddNamedEvent("onsubmit", "somename"); 1065rtb.AddNamedEvent("onsubmit", "some <name>"); 1093rtb.AddNamedEvent("onsubmit", "somename");