Results 1 to 3 of 3

Thread: Views in a panel with card layout, stacking.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    74
    Answers
    1
    Vote Rating
    2
      0  

    Default Views in a panel with card layout, stacking.

    I have a carousel that is dynamically being fed views for cards. Which works fine. I want to remove the swiping functionality but still have indexing to move between the different cards.

    If I take the current view configered as a carousel and change the extend from Ext.Carousel to Ext.Panel with layout defined as 'card', all the views in the former carousel are stacked on top of each other.

    I have tried defining the items before hand, thinking that the dynamically added views were simply added to the panel instead of being added as a card. What causes this, and how can I achieve the card layout with the possibility of setting the activeitem (possibly with support of the activeitemchange event), without the swiping functionality?

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    If they are items of Ext.Panel with card layout everything should be fine. Are there any errors being thrown?
    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

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    74
    Answers
    1
    Vote Rating
    2
      0  

    Default

    So to make a card layout in a panel I need the Panel to have its layout defined as card and all the nested items defined as card as well? Or am I misunderstanding something?

    The error in this case is that all the views are put on top of each other, like where they 5 pieces of paper put in a pile.

Posting Permissions

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