Skip navigation
Currently Being Moderated

How to get an event on every row in a spry:repeat

Mar 28, 2012 7:20 AM

When Spry is finished displaying all (repeated) rows within spry:region you can have an notification by using an Spry.Data.Region.addObserver(). Indicating the HTML generation is finished.

 

Is it possible (and how) to get an notification when a row within Spry.Data.Region has been processed. So I can perform some JS actions, per row in Spry.Data.Region?

 

Thx Pieter

 
Replies
  • Currently Being Moderated
    Mar 29, 2012 4:59 AM   in reply to kgui

    When Spry is finished displaying all (repeated) rows within spry:region you can have an notification by using an Spry.Data.Region.addObserver(). Indicating the HTML generation is finished.

    You can use spry:state for this as in

    <div spry:state="error" align="center">Error Loading Results!</div>

    <div spry:state="loading" align="center">Loading Results...</div>

    <div spry:state="ready">Data results</div>

    Is it possible (and how) to get an notification when a row within Spry.Data.Region has been processed. So I can perform some JS actions, per row in Spry.Data.Region?

    Not sure what you want to do here.

     

    Gramps

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points