AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated v7 version of this document. Switch to the v8 version to see the up to date information.

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.

get

Returns current 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 - Current item key.

reset

Resets the iterator to a pre-first position.