ToastOption

MUI HTML5

MUI

ToastOption

JSON对象,系统提示消息框要设置的参数

属性:

  • icon: (String 类型 )提示消息框上显示的图标
  • duration: (String 类型 )提示消息框显示的时间

    可选值为"long"、"short",值为"long"时显示时间约为3.5s,值为"short"时显示时间约为2s,未设置时默认值为"short"。

  • align: (String 类型 )提示消息框在屏幕中的水平位置

    可选值为"left"、"center"、"right",分别为水平居左、居中、居右,未设置时默认值为"center"。

  • verticalAlign: (String 类型 )提示消息在屏幕中的垂直位置

    可选值为"top"、"center"、"bottom",分别为垂直居顶、居中、居底,未设置时默认值为"bottom"。