offset. Changing current row offset

^table.offset(number)
^table.offset[cur|set](number)

Shifts current row specified
number of times down. If the numeric value of parameter number is negative, current row is shifted up. Current row shift is made cyclically-that is, having reached the last row in the table, current row is shifted back up to the first row.

Optional parameters:
cur-shifts the offset with respect to the current row
set-shifts the offset with respect to the first row

Example
<table border="1">
^goods.offset(-1)
   <tr>
      
<td>$goods.pos</td>
      
<td>$goods.good</td>
      
<td>$goods.price</td>
   </tr>
</table>

The given example will result in HTML-coded table containing the last row of the table from the previous example (i.e. given in the description of method
menu).


Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 01.04.2004