Search code examples
angularinfragisticsignite-uiignite-ui-angular

How to set the width and height of igxDialog?


I am trying to create a modal Dialog, but the width is not applied correctly.

<igx-dialog
  #alert
  title="Notification"
  message="Your email has been sent successfully!"
  leftButtonLabel="OK"
  (onLeftButtonSelect)="alert.close()"
  style="width:1000px"
></igx-dialog>

enter image description here


Solution

  • You can position the IgxDialogComponent in a custom div and then apply the desired styles. For this purpose you should use the IgxOverlayService of the IgxToggleDirective which the IgxDialogComponent uses.

    A sample where this can be seen can be found here