ダイアログのインスタンス作成

BootstrapDialog.show(...) は、単なるショートカット・メソッドで、 ダイアログのインスタンスが必要な場合は 'new' を使用します。

// Using init options
var dialogInstance1 = new BootstrapDialog({
  title: 'Dialog instance 1',
  message: 'Hi Apple!'
});
dialogInstance1.open();

// Construct by using setters
var dialogInstance2 = new BootstrapDialog();
dialogInstance2.setTitle('Dialog instance 2');
dialogInstance2.setMessage('Hi Orange!');
dialogInstance2.setType(BootstrapDialog.TYPE_SUCCESS);
dialogInstance2.open();

// Using chain callings
var dialogInstance3 = new BootstrapDialog()
  .setTitle('Dialog instance 3')
  .setMessage('Hi Everybody!')
  .setType(BootstrapDialog.TYPE_INFO)
  .open();