Threaded View

  1. #1
    Sencha User cyberwombat's Avatar
    Join Date
    Oct 2011
    Posts
    237
    Vote Rating
    2
    Answers
    6
    cyberwombat is on a distinguished road

      0  

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

  2. Use the magical getter for it:

    Code:
    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.

Thread Participants: 1