0.0.6 • Published 9 months ago

@golden-tiger/dom v0.0.6

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

#golden-tiger/dom

query(queryString)

Query HTML element and cache queried elements.

createElement(option)

Recursively create HTML element from option. A falsy option will create nothing. A HTML element option will just return it. A array option will create a HTML element array.

  • option.tag element tag string (a falsy tag will create a template element)
  • option.text element text string
  • option.html element inner html string
  • option.children element children array
  • option.attributes element attributes object (classes is a key in option.attributes for element class, which is set in format of string or array of string)
  • option.events element events object
  • option.lifecycle element lifecycle

createHTMLString(options)

Create HTML string from options.

0.0.5

9 months ago

0.0.6

9 months ago

0.0.3

11 months ago

0.0.4

11 months ago

0.0.2

2 years ago

0.0.1

2 years ago