I am using this js for an echo and normally, it disappears after 5 sec. How can i force for this echo to stay for 10 sec?
var hulla = new hullabaloo();
hulla.send("File already exists! Do you want to overwrite it?<br /><a class='btn btn-primary' href=''>Yes</a>", "warning");
Try this:
var hulla = new hullabaloo({ delay: 10000 });
hulla.send("File already exists! Do you want to overwrite it?<br /><a class='btn btn-primary' href=''>Yes</a>", "warning");
The constructor allows you to pass in additional settings, in this case delay
, to change to 10 seconds:
var hulla = new hullabaloo({ delay: 10000 });
More info: https://www.jqueryscript.net/other/Notification-Plugin-Bootstrap-4-Hullabaloo.html
如果您指的是jQuery插件,则它似乎具有一个相应的选项,可以按如下所示进行设置:
$.hulla.options.delay = 10000
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.