waibu-bootstrap
Version:
Bootstrap suport for Waibu Framework
16 lines (13 loc) • 472 B
JavaScript
const cls = 'toast-container'
async function toastStack () {
return class ToastStack extends this.baseFactory {
constructor (options) {
super(options)
this.selector = '.' + cls
this.component.normalizeAttr(this.params, { tag: 'div', cls })
this.params.attr.position = this.params.attr.position ?? 'fixed bottom-0 end-0'
this.params.attr.margin = this.params.attr.margin ?? 'all-2'
}
}
}
export default toastStack