0.0.3 • Published 2 years ago

be-current v0.0.3

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

be-current

be-current help keep the element it adorns up-to-date with the current entry of navigation state.

Size of package, including custom element behavior framework (be-decorated):

How big is this package in your project?

Size of new code in this package:

<cotus-house be-transactional='{
    "impeachmentCount:onSet": {
        "path": "cotus.house.impeachmentCount",
        "valueFromTarget": "impeachmentCount",
    }
}'></cotus-house>


<cotus-potus be-current='{
    "impeachmentCount" : "cotus.house.impeachmentCount"
}'></cotus-potus>

which is shorthand for:

<cotus-potus be-current='{
    "impeachmentCount" : {
        "eventFilter": {
            "info":{
                "path": "cotus.house.impeachmentCount"
            }
        },
        "observeWinObj": "navigation",
        "on": "navigate",
        "vft": "currentEntry.getState|.cotus.house.impeachmentCount"
    }
}'></cotus-potus>

polyfill guide