如何修改弹出选项“ng2-opd-popup”angular2

时间:2017-05-04 15:40:13

标签: angular dialog popup

我正在使用angular2“ng2-opd-popup”,但有一些问题。

以下代码部分显示了可能的弹出选项

this.popup.options = {
        header: "Your custom header",
        color: "#5cb85c", // red, blue.... 
        widthProsentage: 40, // The with of the popou measured by browser width 
        animationDuration: 1, // in seconds, 0 = no animation 
        showButtons: true, // You can hide this in case you want to use custom buttons 
        confirmBtnContent: "OK", // The text on your confirm button 
        cancleBtnContent: "Cancel", // the text on your cancel button 
        confirmBtnClass: "btn btn-default", // your class for styling the confirm button 
        cancleBtnClass: "btn btn-default", // you class for styling the cancel button 
        animation: "fadeInDown" // 'fadeInLeft', 'fadeInRight', 'fadeInUp', 'bounceIn','bounceInDown' 
};

我要做的是隐藏“标题”,使弹出窗口响应,当用户点击区域外时关闭弹出窗口

即使通过修改我刚刚报道的选项,我也无法达到刚刚提到的目标

从图形上看,它应该是这样的: enter image description here

例如:enter image description here

0 个答案:

没有答案