Top

class anychart.data.TableIterator Improve this Doc

Table iterator class. Assumes iterator (if any) to return not less keys than the table has.

Methods Overview

Data
advance()Advances the iterator to the next position.
get()Returns current field values.
getIndex()Returns item index.
getKey()Returns item key.
reset()Resets the iterator to a pre-first position.

Methods Description

advance

Advances the iterator to the next position.

Returns:

boolean - Returns True if moved to the next position, otherwise returns False.

Try it:

get

Returns current field values.

Params:

Name Type Description
field string The name of the field.

Returns:

* - The field value.

Try it:

getIndex

Returns item index.

Returns:

number - The index of an iterator position.

Try it:

getKey

Returns item key.

Returns:

number - Current item key.

Try it:

reset

Resets the iterator to a pre-first position.

Try it: