shlomiassaf / ngx-modialog

Modal / Dialog for Angular
http://shlomiassaf.github.io/ngx-modialog
MIT License
686 stars 242 forks source link

dialogClass is type of FluentAssignMethod<BootstrapModalSize, this> #205

Closed bittergeek closed 8 years ago

bittergeek commented 8 years ago

In BSModalContextBuilder, dialogClass is type of FluentAssignMethod<BootstrapModalSize, this> while size is type of FluentAssignMethod<string, this>. This looks wrong. I'm getting compilation error trying to set a custom class on the dialog:

this.modal.prompt()
      .size('lg')
      .isBlocking(true)
      .keyboard(27)
      .dialogClass('modal-dialog')
      .title(title)
      .body(message)
      .open().then(this.setFocus);
shlomiassaf commented 8 years ago

Yes, you are right!!! thanks!