logo

Result

Used to feed back the results of a series of operational tasks.

When To Use

Use when important operations need to inform the user to process the results and the feedback is more complicated.

Examples

Show successful results.

expand code expand code

Show processing results.

expand code expand code

The result of the warning.

expand code expand code

you are not authorized to access this page.

expand code expand code

The page you visited does not exist.

expand code expand code

Something went wrong on server.

expand code expand code

Using the ErrorBoundary provided by .NET 6 for making error handling easier in Blazor.

expand code expand code

Complex error feedback.

expand code expand code

Custom icon.

expand code expand code

Dynamically modify the result display page through code.

expand code expand code

Result API#

Property Description Type Default Value
Title ParameterTitle String --
TitleTemplate ParameterTitle. Takes priority over Title. RenderFragment --
SubTitle ParameterSub Title String --
SubTitleTemplate ParameterSub Title. Takes priority over SubTitle. RenderFragment --
Extra ParameterExtra content displayed under all other content RenderFragment --
Status ParameterType of result. Influences styles and default image/icon. Possible values: success, error, info, warning, 404, 403, 500 String info
Icon ParameterCustom icon. Format: "{type}-{theme}" String --
IsShowIcon ParameterShow icon or not Boolean true
ChildContent ParameterChild content. Displayed between title/subtitle and extra. RenderFragment --
Id ParameterID for the component's HTML String Uniquely Generated ID
Class ParameterSpecifies one or more class names for an DOM element. String --
Style ParameterSpecifies an inline style for a DOM element. String --
RefBack ParameterA ForwardRef instance. You can get a reference to the internal DOM by using AntDesign.ForwardRef.Current. ForwardRef --
Progress Skeleton
文档已更新,请点击 此处 更新。
A new version of this app is available. Click here to update.