AnyChart
API Reference
Still have questions?
Contact support
Top

class anychart.data.TableIterator Improve this Doc

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

Methods Overview

Data
advance()Advances the iterator to the next position.
get()Returns 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.

get

Returns field values.

Params:

NameTypeDescription
fieldstringThe name of the field.

Returns:

* - The field value.

getIndex

Returns item index.

Returns:

number - The index of an iterator position.

getKey

Returns item key.

Returns:

number - Returns item key.

reset

Resets the iterator to a pre-first position.