0

does ngDialog allow different sizes of modal?

For example, bootstrap-angular modal has such function:

$modal.open('sm') or $modal.open('lg')

which will open small and large modals respectively.

Is there such thing in ngDialog?

Jahongir Rahmonov
  • 13,083
  • 10
  • 47
  • 91

1 Answers1

1

you can use the option to set a custom class, e.g. your bootstrap class or so:

ngDialog.open({
    className: 'ngdialog-theme-default'
});

you'll find further documentation in the official api documentation.

Raphael Müller
  • 2,180
  • 2
  • 15
  • 20
  • I had the same idea, but the documentation does not show how to create a custom class. Thanks anyways :) – Jahongir Rahmonov Jan 12 '15 at 13:08
  • @JohnyStark I think, you can add whatever css class you want (you have to create a new design class in your css file) and then add this classname as option in the call. – Raphael Müller Jan 12 '15 at 13:33