JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 40
  • Score
    100M100P100Q44655F
  • License MIT

Notify element/behaviors when to be engaged.

Package Exports

  • be-oosoom
  • be-oosoom/be-oosoom.js

Readme

be-oosoom [TODO]

be-oosoom is a be-decorated-based decorator/behavior that monitors the visibility of the element it adorns. When the visibility changes, it:

  1. Checks if the element it adorns has property "beOosoom"
  2. Checks if any other decorators/behaviors adorning the element have virtual property "beOosoom"

For both scenarios, be-oosoom expects the beOosoom property it finds to be a string-valued key to a boolean property that is used by the component or behavior to indicate whether to be "actively engaged" or not. be-oosoom sets the property to true when the element is visible, false when it scrolls out of view (or gets hidden via a details section being closed, for example). If the string starts with ! then the property name after the ! indicates "hibernating" mode, so be-oosoom does the opposite.