All Products
Search
Document Center

PageResult

Last Updated: Feb 04, 2021

This section describes PageResult, the error page.

Property Description Type Default value Mandatory
type Type of the error page. This property is optional. The value can be network (network error), busy (busy service), error (abnormal service), empty (empty state), or logoff (user logout) String network false
local Whether it is a local error Boolean false false
title Title of the error message String - false
brief Brief of the error message String - false

Sample code

  1. {
  2. "defaultTitle": "Error feedback",
  3. "usingComponents": {
  4. "page-result": "mini-antui/es/page-result/index"
  5. }
  6. }
  1. <page-result
  2. type="network"
  3. title = "The network signal strength is poor"
  4. brief="The page cannot be opened due to poor network signal strength"
  5. />
  6. <page-result
  7. type="network"
  8. title = "The network signal strength is poor"
  9. brief="The page cannot be opened due to poor network signal strength"
  10. >
  11. <view class="am-page-result-btns">
  12. <view onTap="backHome">Back to the homepage</view>
  13. <view>Button example</view>
  14. </view>
  15. </page-result>