如何在离子2中进行自定义警报? [英] How to make customized alert in ionic 2?

查看:92
本文介绍了如何在离子2中进行自定义警报?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您能告诉我如何在离子2中制作自定义警报吗?喜欢在右上角添加图片使其可点击

Can you please tell me how to make a customized alert in ionic 2 ? like add image at top right corner make it clickable

推荐答案

对于这些我总是只创建一个自定义模态页面。您可以完全控制模态的所有方面,包括大小调整。它基本上只是一个带控制器和模板的页面,也很容易实现。

For these I always just create a custom modal page. You can full control all aspects of a modal, including sizing. It's basically just a page with a controller and template, super easy to implement too.

http://ionicframework.com/docs/v2/api/components/modal/ModalController/ 应该让你全部设置

这篇关于如何在离子2中进行自定义警报?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆