extjs - Ext JS Component - When can I manipulate the DOM? -
I'm trying to reuse some code to return a component to its initial position so that my Close is a reset ()
function that calls the update ()
function with the default parameter.
Everywhere I try, I'm trying to reach the DOM elements, results in the null - and this is not the code as I tested it after page presentation via page event. It seems that initComponent () is very fast, so I've noticed subscribing to events.
Seeing the events of Ext.Component
, only one seems appropriate Render
Event: "After the component markup, the fire is set. "
Again, I get a null reference. I am not keen to use it because I really want to use render, not to it being sung again, its only once (init after / after), but it can be said again.
When / We want to access the DOM of component on initialization?
Here's the square:
Ext.define ('PegfileApp' View.ContentHeader ', extension:' Expand panel ', nickname:' Widget Content Header ', ID: 'Content header', // layout limit: 1, html: "\
Comments
Post a Comment