Hoppa till innehållet
ÅTERKOPPLING · FREE

ResultPage

Berätta för användare hur det gick: lyckades, fel, hittades inte eller ingen åtkomst.

Ett helsidesmeddelande för ett utfall: lyckades, fel, information, varning, sidan hittades inte, ingen åtkomst.

Varför det hjälper

  • Vanliga utfall färdiga
  • Ikon och åtgärder
  • Vänlig

Var det passar

  • Efter kassan
  • 404-sidor
  • Åtkomst nekad
Kontrollen ResultPage på en RayCraft-sida

Exempel

<ResultPage Status="ResultStatus.Success" Title="Payment received" Description="The invoice 10482 is paid. A receipt was sent to your email.">
    <Actions>
        <Button>View invoice</Button>
        <Button Variant="Variant.Outlined">Back to the list</Button>
    </Actions>
</ResultPage>
<ResultPage Status="ResultStatus.NotFound">
    <Actions>
        <Button>Go to the start page</Button>
    </Actions>
</ResultPage>
<ResultPage Status="ResultStatus.Forbidden" />
<ResultPage Status="ResultStatus.ServerError" />

Ett kort utdrag. Lägg till @using RayCraft.Blazor.Components på din sida och använd ett interaktivt renderingsläge.

Ingår i RayCraft Free. Fungerande exempel finns i GitHub-arkiv (MIT); det innehåller exempel- och demokod, inte bibliotekets kod.

Alla kontroller ยท Dokumentation