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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      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
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •