Reputation: 23
How can I remove "X" button from Popup in angularJS? I don't need it because the cancel button that I have implemented has same functional but the "X" button couldn't reset modifies. It will be implemented as default in HTML:
<div class="ngdialog-close"></div>
Upvotes: 0
Views: 6041
Reputation: 2097
You have to read documentation before integrating (using) any module in your project. Here is the complete list of options for ngDialog.
Upvotes: 1
Reputation: 136174
While opening popup you need to pass one option showClose
which will hide close button if its false
.(default true)
Code
ngDialog.open({
template: 'templateId',
className: 'ngdialog-theme-default',
showClose: false //<-- while opening dialog make it false
});
Upvotes: 8