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

package.src.instanceMethods.getInput.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 privateProps from '../privateProps.js'
import * as dom from '../utils/dom/index.js'

/**
 * Gets the input DOM node, this method works with input parameter.
 *
 * @returns {HTMLInputElement | null}
 */
export function getInput() {
  const innerParams = privateProps.innerParams.get(this)
  const domCache = privateProps.domCache.get(this)
  if (!domCache) {
    return null
  }
  return dom.getInput(domCache.popup, innerParams.input)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy