Threaded View
-
1 Nov 2011 12:44 PM #1
Answered: How to access inner html of a card
Answered: How to access inner html of a card
I want to update a card using ajax - I pulled the kitchensink example but it turns out it doesn't work in card layout because the content seen on screen is not the actual item as defined in the items: sectionof my view - I guess the card layout duplicates content. So technically the ajax works but it doesn't update the visible card part. Is there a way to sync the visible with hidden part of a card? I hope this makes sense.
-
Best Answer Posted by mitchellsimoens
Use the magical getter for it:
getHtml method is automatically created because we passed in the html config on our container.Code:var panel = Ext.create('Ext.Panel', { fullscreen : true, layout : 'card', items : [ { xtype : 'container', html : 'Hello' } ] }); var html = panel.down('container').getHtml();


Reply With Quote