2.0.5 • Published 4 years ago

@anticore-contracts/tree-insert v2.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@anticore-contracts/tree-insert

An anticore contract to insert some elements before/after/prepend/append/replace another one.

Install

npm i @anticore-contracts/tree-insert

Reminder

The tree contracts should be added lastly, to improve the performances.

Exports

on

import '@anticore-contracts/tree-insert/on.js'

when

import '@anticore-contracts/tree-insert/when.js'

Lifecycle

  • Matches
    • .anticore > [data-before]
    • .anticore > [data-after]
    • .anticore > [data-prepend]
    • .anticore > [data-append]
    • .anticore > [data-replace]
  • Takes the value as a query selector to find the target
  • Inserts the match before/after/prepend/append/replace the target

License

MIT

2.0.5

4 years ago

2.0.3

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

2.0.4

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.0

4 years ago