You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes it's necessary to listen for dom modifications using the MutationObserver browser API. A standardised API can be provided in Adapt to make this API useful for handling many types of dynamically injected content in Adapt. By providing a single point of observing changes, we can reduce the processing overhead for this type of operation and stabalise its utilisation.
Current uses:
GraphicLottie Allows the use of animated svgs in place of img, it does this by replacing img tags with svg players
Navigation Button API Listens for injected buttons in order to make models and views for managing them via an API
Possible future uses:
Tooltips API To allow permanent tooltips to be rendered when a [data-tooltip-id] element is injected
Resources To inject resources into content using a simple <resources id='resource1' /> style tag
Glossary To inject clickable areas into content using a simple <glossary term="Term" /> style tag
The text was updated successfully, but these errors were encountered:
Subject of the issue
Sometimes it's necessary to listen for dom modifications using the MutationObserver browser API. A standardised API can be provided in Adapt to make this API useful for handling many types of dynamically injected content in Adapt. By providing a single point of observing changes, we can reduce the processing overhead for this type of operation and stabalise its utilisation.
Current uses:
Possible future uses:
[data-tooltip-id]
element is injected<resources id='resource1' />
style tag<glossary term="Term" />
style tagThe text was updated successfully, but these errors were encountered: