On this page
d-notification
リニアプログレスバーのカウントダウンと自動終了ライフサイクルを備えたトースト通知コンポーネントです。
1<d-notification timer="4000" opened>2 <p>project settings saved successfully</p>3</d-notification>属性とプロパティ
| 属性 | プロパティ | 型 | デフォルト値 | フォーム | 説明 |
|---|---|---|---|---|---|
opened |
opened |
boolean |
false |
いいえ | トースト通知が表示されているかどうか |
timer |
timer |
number |
0 |
いいえ | ミリ秒単位の自動消去時間(0でタイマー無効化) |
プログラム用api
1const toast = select('d-notification');2 3toast.show();4toast.hide();5await toast.destroy();イベント
| イベント | 詳細 | バブリング | 説明 |
|---|---|---|---|
open |
なし | はい | 通知が開いたときに送出 |
close |
なし | はい | 通知が閉じたときに送出 |
動作仕様
- タイマー満了後に自動的に閉じるオプションのカウントダウンプログレスバー付きトースト通知を表示します。

