本文整理匯總了TypeScript中ng2-opd-popup.Popup類的典型用法代碼示例。如果您正苦於以下問題:TypeScript Popup類的具體用法?TypeScript Popup怎麽用?TypeScript Popup使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了Popup類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: showPopup1
showPopup1(){
this.popup1.options = {
cancleBtnClass: "btn btn-default",
confirmBtnClass: "btn btn-default",
color: "#4180ab",
header: "Single Popup on a page"}
this.popup1.show(this.popup1.options);
}
示例2: showPopup4
showPopup4(){
this.popup4.options = {
cancleBtnClass: "btn btn-default",
confirmBtnClass: "btn btn-default",
color: "#5cb85c",
header: "Events...",
widthProsentage:50,
animation: "bounceInDown"}
this.popup4.show(this.popup4.options);
}
示例3: showPopup3
showPopup3(){
this.popup3.options = {
cancleBtnClass: "btn btn-default",
confirmBtnClass: "btn btn-default",
color: "#333",
header: "Animations...",
widthProsentage:60,
animation: "bounceIn"}
this.popup3.show(this.popup3.options);
}
示例4: showPopup2
showPopup2(){
this.popup2.options = {
cancleBtnClass: "btn btn-default",
confirmBtnClass: "btn btn-default",
color: "#5cb85c",
header: "Size 60% of page - color = #5cb85c",
widthProsentage:60,
animation:"fadeInUp"}
this.popup2.show(this.popup2.options);
}
示例5: showPopup5
showPopup5(){
this.popup5.options = {
cancleBtnClass: "btn btn-default",
confirmBtnClass: "btn btn-mbe-attack",
color: "#A0DE4F",
header: "Login...",
widthProsentage:50,
animation: "bounceInDown",
confirmBtnContent: "Login"}
this.popup5.show(this.popup5.options);
}
示例6: login
login(){
alert('Email: ' + this.email + ' Password: ' + this.password);
this.popup5.hide();
}
示例7: YourConfirmEvent
YourConfirmEvent(){
alert('You cliked confirm');
this.popup4.hide();
}