Class

Collection

Collection(txCollection, wrapItem)

generic representation of a collection
Constructor

# new Collection(txCollection, wrapItem)

Wrapper für TXTextControl.Collection
Parameters:
Name Type Description
txCollection any
wrapItem function

View Source Collection.js, line 8

Classes

Collection

Methods

# protected _wrapItem()

View Source Collection.js, line 23

# async elementAt(index) → {Promise.<T>}

Returns the element at a specified index in the collection
Parameters:
Name Type Description
index number

View Source Collection.js, line 66

Promise.<T>

# async forEach(forEachCallback) → {Promise.<void>}

Executes a callback function for each element
Parameters:
Name Type Description
forEachCallback function
Deprecated:
  • may use "for await" instead forEachCallback

View Source Collection.js, line 53

Promise.<void>

# async generator reverse() → {AsyncGenerator.<Awaited.<T>, void, unknown>}

iterates the collection in reverse use in for await

View Source Collection.js, line 38

AsyncGenerator.<Awaited.<T>, void, unknown>