bootstrap5吐司
从复制并更新为支持Bootstrap 5.x 作为概念证明(不完整)
关于
使Bootstrap 5.x Toast更易于使用
需要jQuery 3.x
待办事项:位置/位置被硬编码为右上top-0 start-0
待办事项:图片
用法
只需要JS文件,所有CSS都来自Bootstrap 5.x
< script src =" src/toast.js " > </ script >
全球
修改全局变量,以将特定的规则/样式应用于您的所有吐司。
$ . toastDefaults = {
position : 'top-right' , /** top-left/top-right/top-center/bottom-left/bottom-right/bottom-center - Where the toast will show up **/