<AlertDialog />

使い方

<AlertDialog isOpen={this.state.isOpen} onCancel={this.handleCancel.bind(this)} cancelable>
     <div className="alert-dialog-title">Warning!</div>
     <div className="alert-dialog-content">
       An error has occurred!
     </div>
     <div className="alert-dialog-footer">
       <Button onClick={this.handleCancel.bind(this)} className="alert-dialog-button">
         Cancel
       </Button>
       <Button onClick={this.handleCancel.bind(this)} className="alert-dialog-button">
         Ok
       </Button>
     </div>
   </AlertDialog>
名前 型 / デフォルト値 概要
visible bool Indicates whether the dialog is open and shown. (翻訳中) Optional.
disabled bool Specifies whether the dialog is disabled. (翻訳中) Optional.
cancelable bool

Specifies whether the dialog is cancelable or not. A cancelable dialog will call onDialogCancel when tapping the background or pressing the back button on Android devices.

(翻訳中)
Optional.
onDialogCancel func Called only if cancelable is true. It will be called after tapping the background or by pressing the back button on Android devices. (翻訳中) Optional.
onCancel func DEPRECATED! Use onDialogCancel instead. (翻訳中) Optional.
isOpen bool DEPRECATED! Use visible instead. (翻訳中) Optional.
isCancelable bool DEPRECATED! Use cancelable instead. (翻訳中) Optional.
isDisabled bool DEPRECATED! Use disabled instead. (翻訳中) Optional.
animation string The animation used when showing and hiding the dialog. Can be either "none" or "default". (翻訳中) Optional.
modifier string The appearance of the dialog. (翻訳中) Optional.
maskColor string Color of the background mask. Default is “rgba(0, 0, 0, 0.2)” (翻訳中) Optional.
animationOptions object Specify the animation’s duration, delay and timing. E.g. {duration: 0.2, delay: 0.4, timing: 'ease-in'}. (翻訳中) Optional.
onPreShow func Called just before the alert dialog is displayed. (翻訳中) Optional.
onPostShow func Called just after the alert dialog is displayed. (翻訳中) Optional.
onPreHide func Called just before the alert dialog is hidden. (翻訳中) Optional.
onPostHide func Called just after the alert dialog is hidden. (翻訳中) Optional.
onDeviceBackButton func Custom handler for device back button. (翻訳中) Optional.
Name 概要
material マテリアルデザインのスタイル
rowfooter フッターの複数のボタンを水平に配置

お困りですか?

Onsen UIに関する質問は、Stack Overflowにてonsen-uiタグを付与してください。Onsen UIチームはあなたの問題解決をお手伝いします。

バグ報告や機能要望については、GitHub Issuesに記載をお願いいたします。

あわせて、下記の情報も参考にしてください。