<tap-pat-result>
Result page for a whole-page state, such as an operation succeeding or failing, or a missing permission. Buttons only emit events; navigating or closing is up to the caller.
Example
Loading...
<tap-pat-result
style=${"width: 100%; height: 400px"}
.status=${"success"}
.heading=${"Payment Successful"}
.description=${"Your order has been placed and will ship within 24 hours."}
.primary=${"View Order"}
.secondary=${"Back to Home"}></tap-pat-result> <tap-pat-result
style=${"width: 100%; height: 400px"}
.status=${"error"}
.heading=${"Submission Failed"}
.description=${"Please check your network connection and try again."}
.primary=${"Retry"}></tap-pat-result>
API
结果页,例如操作成功/失败、需要权限
按钮只发出事件,跳转或关闭由调用方处理
Extends GemElement
Instance Properties
| Property(Attribute) | Reactive | Type | Description |
|---|---|---|---|
status(status) |
Yes | ResultStatus |
Defaults to success |
heading(heading) |
Yes | string |
|
description(description) |
Yes | string |
|
primary(primary) |
Yes | string |
Label of the primary button, hidden when not set |
secondary(secondary) |
Yes | string |
Label of the secondary button, hidden when not set |
primaryclick |
Emitter<null> |
||
secondaryclick |
Emitter<null> |
Other
| Type | Value |
|---|---|
| Event | primaryclick, secondaryclick |
