航海者でアラートを使用する方法は?例はありますか?空のフィールドで投稿を送信するときにアラートを表示したい。
VoyagerはtoastrLibraryを使用します。これを使用するには、次の方法を使用してイベントとして起動できます。
Toastr::warning($message, $title = null, $options = []) - add a warning toast
Toastr::error($message, $title = null, $options = []) - add an error toast
Toastr::info($message, $title = null, $options = []) - add an info toast
Toastr::success($message, $title = null, $options = []) - add a success toast
Toastr::add($type: warning|error|info|success, $message, $title = null, $options = []) - add a toast
Toastr::clear() - clear all current toasts
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加