be-current
v0.0.3
Published
Keep the element it adorns up-to-date with the current entry of navigation state
Downloads
5
Maintainers
Readme
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):
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>