相关疑难解决方法(0)

造型离子2吐司

有没有办法在离子2吐司中设置文本消息的样式?

我试过这个:

    let toast = Toast.create({
      message: "Some text on one line. <br /><br /> Some text on another line.",
      duration: 15000,
      showCloseButton: true,
      closeButtonText: 'Got it!',
      dismissOnPageChange: true
    });

    toast.onDismiss(() => {
      console.log('Dismissed toast');
    });

    this.nav.present(toast);
  }
Run Code Online (Sandbox Code Playgroud)

但显然你不能在文本中使用html所以我猜我的问题的答案是否定的?

toast ionic2

20
推荐指数
4
解决办法
4万
查看次数

标签 统计

ionic2 ×1

toast ×1