Results 1 to 2 of 2

Thread: 'oldCard' in management are inactive items hidden or removed from DOM?

  1. #1
    Sencha User
    Join Date
    Sep 2010
    Location
    Netherlands
    Posts
    120
    Answers
    3
    Vote Rating
    4
      0  

    Default Answered: 'oldCard' in management are inactive items hidden or removed from DOM?

    Hi,

    In early version of Sencha if we use CardLayout we should manage the oldCards (inactive cards that are ot visible) ourself. They were present at DOM level (HTML) but not visible...

    In the current version I only see the active card in HTML, are the inactive cards now automatically managed or am I missing the point here?

  2. The hidden card is not removed. This is going to have to be handled by you. This code:

    Code:
    new Ext.Container({
        fullscreen : true,
        layout     : 'card',
        items      : [
            {
                html : 'One'
            },
            {
                html : 'Two'
            }
        ]
    });
    Produces this DOM and notice the 2nd item that has display: none

    Attachment 31632

  3. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,029
    Answers
    3976
    Vote Rating
    1367
      0  

    Default

    The hidden card is not removed. This is going to have to be handled by you. This code:

    Code:
    new Ext.Container({
        fullscreen : true,
        layout     : 'card',
        items      : [
            {
                html : 'One'
            },
            {
                html : 'Two'
            }
        ]
    });
    Produces this DOM and notice the 2nd item that has display: none

    Screen Shot 2012-02-12 at 10.52.07 AM.jpg
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

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