1. #1
    Ext User
    Join Date
    Aug 2010
    Posts
    17
    Vote Rating
    0
    ice70 is on a distinguished road

      0  

    Question kitchen sink: onListChange: function(list, item).. whats the item object?

    kitchen sink: onListChange: function(list, item).. whats the item object?


    Hi

    I am trying to reuse the onListChange: function(list, item) as defined in the kitchen sink example, but for the life of me, I can't work out what object is passed as the 'item' parameter.

    Thank you for any help
    Ice70

  2. #2
    Sencha User
    Join Date
    Jul 2010
    Location
    Paris, France
    Posts
    257
    Vote Rating
    0
    gabrielstuff is on a distinguished road

      0  

    Default


    Hi !
    Maybe if you look at the structure.js you will find that you card that contains items and other that are just card without items.
    This is mostly use with the nestedlist and to make the back button appearing.
    hope it helps.

  3. #3
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,119
    Vote Rating
    507
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  4. #4
    Ext User
    Join Date
    Aug 2010
    Posts
    17
    Vote Rating
    0
    ice70 is on a distinguished road

      0  

    Default


    Hi Even

    thank you for the link.

    I am not quite sure where the 'listitem' object is created in the kitchensink example...

    If I update onListChange to include console outputs as follows,
    Code:
        onListChange : function(list, item) {
            console.info(item);
            console.info(sink.Structure[0]);
            console.dir(item);
            console.dir(sink.Structure[0]);
    the output (for showing the button card in the userinterface -> button) is as follows:
    console.info(item) = Object initialConfig=Object text=Buttons card=Object
    console.info(sink.Structure[0]) = Object text=User Interface cls=launchscreen items=[11]

    looking in the output for sink.Structure[0], I can't see something that looks like the output for console.dir(item).

    Am I looking in the right place or have I totally misunderstood this?

    The reason I am looking for this is that I need to add some links within cards that will take you to a different card and update the navigation accordingly. I was hoping to reuse the onListChange : function(list, item) and have the 'list' param no problem, its just the 'item' to go. Or is there a better way of doing this?

    Thank you for your help
    Ice70

Similar Threads

  1. Question to Cards of Kitchen Sink/ Events Example
    By msinn in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 30 Jul 2010, 12:53 PM
  2. Getting item id / item content from a list populated by AJAX
    By Rohall in forum Sencha Touch 1.x: Discussion
    Replies: 7
    Last Post: 23 Jul 2010, 7:48 AM
  3. [.8 -- iPhone] Kitchen Sink example - All ssyptes of layout issues
    By jay@moduscreate.com in forum Sencha Touch 1.x: Bugs
    Replies: 1
    Last Post: 19 May 2010, 9:58 AM
  4. Replies: 2
    Last Post: 28 May 2009, 1:14 PM
  5. combobox with drop list whose item height (for each item) is 3 pixels high!
    By stratton in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 17 Feb 2009, 8:50 AM

Thread Participants: 2

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