Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    79
    Answers
    7
    Vote Rating
    1
    jonathansimmons is on a distinguished road

      0  

    Default Unanswered: Animate a DataView after it's data has been loaded. (i.e. slide in a list)

    Unanswered: Animate a DataView after it's data has been loaded. (i.e. slide in a list)


    So I have a DataView (List) that is using made up of data items. which is loading items from a store and displaying fine. When the app loads I get a load mask until the data is retrieved from the server, loaded into the store, then list of items is displayed.

    My goal is to animate the way this list appears. (ideally slideIn from the bottom).

    I've tried using the following in the DataView config

    Code:
    showAnimation: {
          type: 'slideIn',
          direction: 'up',
          duration: 300
    },
    This doesn't work the way I would like it to though. Here is why.
    Since this first time the DataView is being shown the show event fires except there isn't any data yet. A few second later the data is loaded but the showAnimation has already happened (i think) with no content.

    At this point if I switch tabs and switch back I can see the animation work. This I believe is because the data is already loaded (Note: This only works because I'm not re-loading the store each time load the view.) so when the show action is called the animation works as desired.

    So basically as I understand it, I would need to find a way to get the show action to fire once the data in the store is loaded and updates the data view.

    My thought would be to find a way to add a showAnimation to the DataView so that I can slide it up from the bottom the first time it loads. Then remove the showAnimation for all subsequent displays of that DataView tab. Which will provided a nice animation of the first load then instant data for each load thereafter.

    I'm played around with a few things but ultimately can't find a way to get the show action to fire again. (i know HOW to get it to fire just not a place to place the fireEvent() call. i.e. an action that happens once the store loads with a reference to that data view.

    Anyone know if something like this is possible?

  2. #2
    Sencha User
    Join Date
    Nov 2011
    Posts
    72
    Answers
    3
    Vote Rating
    2
    sephyroth69 is on a distinguished road

      0  

    Default


    Have you tried binding to another event than "show" ? Maybe the updatedata event ?

  3. #3
    Sencha User
    Join Date
    Nov 2011
    Posts
    79
    Answers
    7
    Vote Rating
    1
    jonathansimmons is on a distinguished road

      0  

    Default Tried just about every even

    Tried just about every even


    I've tried just about ever event. To my knowledge the showAnimation will only respond to the show call. That being said I have basically tried loggin every event to see if any of them fire after the data is loaded, thinking I could then use fireEvent() to call the show event.

    I guess the real problem here is that it appears the show even fires immeadiatly and there is no event that fires one the dataviews data has loaded.

  4. #4
    Sencha User
    Join Date
    Nov 2011
    Posts
    72
    Answers
    3
    Vote Rating
    2
    sephyroth69 is on a distinguished road

      0  

    Default


    Well if there is no solution available, a trick could be to embed a view in your dataview which has an event which would be fired when the component becomes visible. (I don't know if this is possible in sencha touch, it's just an idea) This way, you would bind on this one instead...
    Not very neat though.

  5. #5
    Sencha User
    Join Date
    Nov 2011
    Posts
    79
    Answers
    7
    Vote Rating
    1
    jonathansimmons is on a distinguished road

      0  

    Default


    Yea, I'm hoping it doesn't come to this.

Thread Participants: 1

Tags for this Thread