1.1.1 • Published 11 months ago

tm-dom v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

DOM utilities

$ npm install tm-dom

How to use

selectorEngine
import { selectorEngine } from 'tm-dom'

const inputTextElements = selectorEngine.find<HTMLInputElement>( 'input["type="text"]' )
inputTextElements.forEach( element => {
  
  /**
   * we know the element is a HTMLInputElement
   * and it has the property `value`
   */
  console.log( element.value ) 
})
ready
import { documentReady, documentComplete } from 'tm-dom'

// the function calls the passed function after the document has finished loading 
// and the document has been parsed, but sub-resources such as scripts, images,
// stylesheets and frames are still loading
documentReady( callback )

// the function calls the passed function after the document and all sub-resources have finished loading
documentComplete( callback )
1.1.1

11 months ago

1.0.2

1 year ago

1.1.0

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago