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
I am currently using a plugin that accesses items that are currently on the DOM through document.getElementByID. Searching though the code, it looks like function that adds components to the layout happens before the ContentItem is actually added to the DOM. This is causing problems in the plugin. I gave the item added event a shot but that seems to fire before the item is added. The one event that kind of worked was to subscribe to the 'open' event of the container, but that only fires once when the container is first loaded and has been added to the DOM. We are currently using Backbone as a framework and what i am trying to achieve is to call render() on my view after the contentitem has been added to the DOM. Got any ideas? Any help would be appreciated, I can provide examples if need be.
Thanks!
The text was updated successfully, but these errors were encountered:
just for my understanding. You mention* '**The one event that kind of
worked was to subscribe to the 'open' event of the container, but that only
fires once when the container is first loaded and has been added to the
DOM' *which is exactly right. But if you're not looking for the event that
fires when the container is first added to the DOM (where it stays until
it's destroyed), what exactly are you looking for?
I am currently using a plugin that accesses items that are currently on
the DOM through document.getElementByID. Searching though the code, it
looks like function that adds components to the layout happens before the
ContentItem is actually added to the DOM. This is causing problems in the
plugin. I gave the item added event a shot but that seems to fire before
the item is added. The one event that kind of worked was to subscribe to
the 'open' event of the container, but that only fires once when the
container is first loaded and has been added to the DOM. We are currently
using Backbone as a framework and what i am trying to achieve is to call
render() on my view after the contentitem has been added to the DOM. Got
any ideas? Any help would be appreciated, I can provide examples if need be.
Thanks!
—
Reply to this email directly or view it on GitHub #32.
I am currently using a plugin that accesses items that are currently on the DOM through
document.getElementByID
. Searching though the code, it looks like function that adds components to the layout happens before the ContentItem is actually added to the DOM. This is causing problems in the plugin. I gave the item added event a shot but that seems to fire before the item is added. The one event that kind of worked was to subscribe to the 'open' event of the container, but that only fires once when the container is first loaded and has been added to the DOM. We are currently using Backbone as a framework and what i am trying to achieve is to callrender()
on my view after the contentitem has been added to the DOM. Got any ideas? Any help would be appreciated, I can provide examples if need be.Thanks!
The text was updated successfully, but these errors were encountered: