0.0.30 • Published 3 years ago

pass-up v0.0.30

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

pass-up

Actions Status

pass-up (or p-u for short) is a web component, which, together with pass-down, or p-d for short provides (limited) declarative two-way binding support of web components.

p-u is one member of the family of web components that forms a framework for declaratively gluing web components together, using HTML as the preferred mime-type for delivering content.

Sample Syntax

<div id=target1></div>
<div id=firstLine disabled data-why="There was an old lady who swallowed a fly;">I don't know why she swallowed a fly - Perhaps she'll die!</div>
<p-u on=load to=/target1 prop=textContent init-val=dataset.why></p-u>
<div target2 id=target2></div>
<div id=thirdLine disabled data-spider="There was an old lady who swallowed a spider;"> </div>
<p-u on=click to-nearest-up-match=[target2] prop=textContent val=target.dataset.spider></p-u>

Import Maps

If using a static file web server with no bundling, the following entries are required in your import map:

<script type=importmap>
    {
        "imports": {
            "trans-render/": "../node_modules/trans-render/",
            "on-to-me/": "../node_modules/on-to-me/"
        }
    }
</script>

Viewing Your Element

To view this element locally:

  1. Install git, npm
  2. Clone or fork this git repo.
  3. Open a terminal from the folder created in step 2.
  4. Run npm install
  5. Run npm run serve
  6. Open http://localhost:3030/demo/dev

Running Tests

$ npm tests
0.0.30

3 years ago

0.0.27

3 years ago

0.0.28

3 years ago

0.0.29

3 years ago

0.0.24

3 years ago

0.0.25

3 years ago

0.0.26

3 years ago

0.0.20

3 years ago

0.0.21

3 years ago

0.0.22

3 years ago

0.0.23

3 years ago

0.0.19

3 years ago

0.0.17

3 years ago

0.0.15

3 years ago

0.0.16

3 years ago

0.0.14

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.4

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago