dotnet / dotnet/aspnetcore

Provide a new form component to simplify form authoring

Offen
#49,653 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area-blazor enhancement feature-blazor-component-model Pillar: Complete Blazor Web
Vorherrschende Sprache
C#
Sterne
38.4k
Forks
10.9k
Ø Merge
2 T. 10 Std.
Gemergte PRs (30 T.)
281

Beschreibung

When I tried to implement a logout form, this is what I ended up with:

```razor

Logout

```

It didn't make sense to use `EditForm` for this form because `EditForm` requires a model or an edit context, which I don't really need.

A couple of observations:
- I had to explicitly specify a form name, which is now required for all forms
- I had to manually add antiforgery support

In Razor Pages the form tag helper handles these concerns for you:

```

Logout

```

Should we provide a new framework component that makes authoring these sorts of forms easier?

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

The issue does not name a repository file, test, or entry point. First identify the existing form components and antiforgery tests, then determine the component's intended API and acceptance criteria before estimating implementation work.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Bereich
web-dev
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.