All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.src.utils.dom.renderers.renderFooter.js Maven / Gradle / Ivy

Go to download

A beautiful, responsive, customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes, supported fork of sweetalert

The newest version!
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')
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy