Results 1 to 5 of 5

Thread: How to access inner html of a card

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User cyberwombat's Avatar
    Join Date
    Oct 2011
    Vote Rating

    Default 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.

  2. Use the magical getter for it:

    var panel = Ext.create('Ext.Panel', {
        fullscreen : true,
        layout     : 'card',
        items      : [
                xtype : 'container',
                html  : 'Hello'
    var html = panel.down('container').getHtml();
    getHtml method is automatically created because we passed in the html config on our container.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts