Category : toast

According to the documentation we have the possibility to return toast messages when actions are being run. The success message of these can be shown using this kind of code: return Action::message(‘It worked!’); return Action::danger(‘Something went wrong!’); The problem is that these messages are on screen for only a few seconds. I am currently working ..

Read more

The following code of inertiajs with vue only works this way computed: { flash: function () { if (this.$page.props.flash.message) { this.$toast.open({ type: this.$page.props.flash.type, message: this.$page.props.flash.message.message, }) } return this.$page.props.flash.message } }, watch: { flash: function (newVal, oldVal) { } }, but if i remove the watch part, it doesn’t work. Also if i put the ..

Read more

im using the https://xvelopers.com/demos/html/paper-panel/panel-element-toast.html panel… and i trying to show toast after a function.. if i use <div class="toast" data-title="Hi, there!" data-message="Hope you like paper panel." data-type="success"> </div> it show a toast correctly at page load… now, im trying to add this at: $.ajax({ url: "asd/store-asd", type: "POST", data: fd, processData: false, contentType: false }).done(function(resp){ ..

Read more

I am currently using Toast Ui Grid and want to insert update delete data in Grid. I have a question because I don’t think the Laravel Route is set properly. blade.php source enter image description here web.php source Route::post(‘mains/save’, [MainController::class, ‘saveData’])->name(‘mains.save’); Controller source -/** * Store a newly created resource in storage. * * @param ..

Read more

I’m going to display message in my laravel project using iziToast. In my “custom.js” file, I have ajax function. success: function (res) { console.log(res); itoastr(‘success’, res.success); } when success, I need to display message from controller or some other message. But when success, toast not working and it shows such console error. iziToast.min.js:6 Uncaught TypeError: ..

Read more