1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    31
    Vote Rating
    0
    1chiban is on a distinguished road

      0  

    Default Show/hide() vs setActiveItem()

    Show/hide() vs setActiveItem()


    Hi guys, i have a question, is there any difference in performance when utilizing Show/hide() instead of setactiveitem(), when changing panels? Or is there any disadvantage using one of these rather than the other? Thanks in advance.

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,639
    Vote Rating
    80
    Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice

      0  

    Default


    Assuming you are referring to CardLayout.setActiveItem, the main advantage is that it is easier to only have to call setActiveItem to specify what the new visible item is - you can disregard the old active item, and it will automatically hide it.

    If you are manually calling hide(), show(), then there may be no need for a CardLayout at all. Note that CardLayout is used to implement TabPanel, and can be a useful way to build related widgets, where a user decision in one place affects which widget is visible in another.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar