This commit is contained in:
David Štaleker
2024-02-23 12:56:54 +01:00
parent 18bac3de1c
commit 28d1630749
1388 changed files with 558637 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import * as dom from '../../dom/index.js'
/**
* @param {SweetAlert} instance
* @param {SweetAlertOptions} params
*/
export const renderFooter = (instance, params) => {
const footer = dom.getFooter()
if (!footer) {
return
}
dom.showWhenInnerHtmlPresent(footer)
dom.toggle(footer, params.footer, 'block')
if (params.footer) {
dom.parseHtmlToContainer(params.footer, footer)
}
// Custom class
dom.applyCustomClass(footer, params, 'footer')
}