04.02.2013 Views

Spry User Guide - Support - Adobe

Spry User Guide - Support - Adobe

Spry User Guide - Support - Adobe

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

{item}<br />

{description}<br />

{price}<br />

{ds_RowNumber}<br />

<br />

These options are also useful to pass a value in a JavaScript method, as follows:<br />

<br />

{item}<br />

{description}<br />

{price}<br />

<br />

The following table provides a full list of built-in <strong>Spry</strong> data references.<br />

Data reference Description<br />

ds_RowID The ID of a row in the data set. This ID can be used to refer to a specific record in<br />

the data set. It does not change, even when the data is sorted.<br />

ds_RowNumber The row number of the current row of the data set. Within a loop construct, this<br />

number reflects the position of the row currently being evaluated.<br />

ds_RowNumberPlus1 The same as ds_RowNumber, except that the first row starts at index 1<br />

instead of index 0.<br />

ds_RowCount The number of rows in the data set. If a nondestructive filter is set on the data<br />

set, this is the total number of rows after the filter is applied.<br />

ds_UnfilteredRowCount The number of rows in the data set before any nondestructive filter is applied.<br />

ds_CurrentRowID The ID of the current row of the data set. This value does not change, even when<br />

used within a looping construct.<br />

ds_CurrentRowNumber The row number of the current row of the data set. This value does not change,<br />

even when used within a looping construct.<br />

ds_SortColumn The name of the column last used for sorting. If the data in the data set was never<br />

sorted, this outputs nothing (an empty string).<br />

ds_SortOrder The current sort order of the data in the data set. This data reference outputs the<br />

words ascending, descending, or nothing (an empty string).<br />

ds_EvenOddRow Looks at the current value of ds_RowNumber and returns the string "even"<br />

or "odd". Useful for rendering alternate row colors.<br />

Hiding data references<br />

In some browsers, loading pages over a slow connection can result in the user briefly seeing the unprocessed regions<br />

and data references on the page before the document's onload notification is sent. To hide unprocessed regions and<br />

data references, you can provide a CSS rule for the <strong>Spry</strong>HiddenRegion class:<br />

.<strong>Spry</strong>HiddenRegion {visibility:hidden;}<br />

<br />

...<br />

<br />

...<br />

<br />

SPRY<br />

<strong>User</strong> <strong>Guide</strong><br />

136

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!