Results 1 to 4 of 4

Thread: ST for loop ?

  1. #1
    Sencha Premium User
    Join Date
    Sep 2010
    Location
    UK
    Posts
    134

    Default ST for loop ?

    Hi,

    Is there anyway to call ST.xxx inside a loop? As I have an array of elements and I would like to perform the same test on each element.

    Thanks
    Joe

  2. #2

    Default

    I don't know of a built-in way, but if it's an in-browser scenario, and you know the view has been rendered, you can use Ext.all() to get an array of elements, then loop over that.

    If it has to be Web Driver then I'd try creating an array of selectors, then loop over that and do an ST.component() on each selector.

    :-)

  3. #3

    Default

    Also -- after reading some other threads, I found this from Dan Gallo.

    https://www.sencha.com/forum/showthr...=1#post1319138

  4. #4
    Sencha Premium User
    Join Date
    Sep 2010
    Location
    UK
    Posts
    134

    Default

    Oops, how do I miss that. ST.each(array, fn).

Similar Threads

  1. Getting the value of inner loop
    By miftha in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 4 Jun 2013, 4:28 AM
  2. [NOREPRO] 3.0.0.201 loop bug ?
    By huberte in forum Sencha Cmd
    Replies: 13
    Last Post: 30 Oct 2012, 2:51 PM
  3. Get parent in loop inside loop - Xtemplate
    By healthformula in forum Ext: Q&A
    Replies: 2
    Last Post: 31 Jul 2012, 6:02 AM
  4. [FIXED] XTemplate: cannot access parent values from a for loop inside a for loop
    By manuelhitz in forum Sencha Touch 2.x: Bugs
    Replies: 4
    Last Post: 18 Jun 2012, 11:45 AM
  5. For LOOP
    By say2paul in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 23 Jan 2008, 3:18 AM

Posting Permissions

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