Moein
Moein

Reputation: 23

how to remove "X" button from popup in angularJS

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

Answers (2)

Bharat Bhushan
Bharat Bhushan

Reputation: 2097

You have to read documentation before integrating (using) any module in your project. Here is the complete list of options for ngDialog.

Hide close button

Upvotes: 1

Pankaj Parkar
Pankaj Parkar

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

Related Questions