0.2.3-7 • Published 3 years ago

tyne v0.2.3-7

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

Example

Following JavaScript...

select(["head", "get", "post"])

will generate following HTML.

<select>
  <option value="head">head</option>
  <option value="get">get</option>
  <option value="post">post</option>
</select>

To add inline style...

js

select(["head", "get", "post"], {
  style: { textTransform: "uppercase" }
})

html

<select style="text-transform: uppercase">
  <option value="head">head</option>
  <option value="get">get</option>
  <option value="post">post</option>
</select>

To add generated element to document...

const methodType = select(["head", "get", "post"], {
  style: { textTransform: "uppercase" }
})
document.body.appendChild(methodType);

or shorthand version

select(["head", "get", "post"], {
  style: { textTransform: "uppercase" }
}, document.body)

Example Projects

0.2.3-7

3 years ago

0.2.3-6

4 years ago

0.2.3-5

4 years ago

0.2.3-4

4 years ago

0.2.3-3

4 years ago

0.2.3-2

4 years ago

0.2.3-1

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1-5

4 years ago

0.2.1-6

4 years ago

0.2.1-4

4 years ago

0.2.1-3

4 years ago

0.2.1-2

4 years ago

0.2.1

4 years ago

0.2.1-1

4 years ago

0.2.0-1

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.1-1

4 years ago

0.1.0

4 years ago

0.0.1-1

4 years ago

0.0.1

4 years ago