导航

CRM 2016 自定义对话框

Posted on 2016-12-22 15:56  yiyishuitian  阅读(197)  评论(0编辑  收藏  举报

项目背景: CRM表单在操作时会有一些提示,或者交互的对话框. 直接 使用js的alert 和  confirm,网格上有些不协调.

以前在项目中使用过jquery 的,但是CRM官方不建议使用jquery.折腾了两天.终于还是在 codeplex找到一个解决方案.效果还错.

 

1 下载解决方案: https://alertjs.codeplex.com/

也可以到我的CSDN资源中下载: http://download.csdn.net/detail/yiyishuitian/9718619

 

2 导入解决方案

 

 

3 引用js

 

4 使用 案例

Alert.show("Would you like to create a sale?", "This will create and open the new sale record.", [
    new Alert.Button("Create Sale", function() {
        Alert.show("Sale created successfully!", null, null, "SUCCESS", 500, 200);
    }, true, true),
    new Alert.Button("Not now")
], "QUESTION", 500, 200);

 

 完成!