nuke-biz-custom-toast
v0.0.2
Published
nuke-biz-custom-toast
Readme
CustomToast
- category: UI
- chinese: 图标
- type: UI组件
Why another toast ?
Since Modal.toast in weex-nuke calls native dialogs in weex , native toast cannot add custom style or any icons , which is exactly what we want. So we use Mask and View to create a new Toast.
API
参数 | 说明 | 类型 | 默认值 -----|-----|-----|----- type| icon type, 'success','error','warning'|string|'success' message|toast message|string|无 onHide | function called after toast was closed | function | onShow | function called after toast was opened | function | false maxLines | message max lines | number | 3 duration | toast duration | number | 2000
