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 7

Classes

Collection

Members

any

# protected _txCollection

View Source Collection.js, line 13

Methods

# 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 87

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 66

Promise.<void>

# async getCount() → {Promise.<number>}

Gets the number of elements contained in the collection

View Source Collection.js, line 76

Promise.<number>

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

iterates the collection in reverse use in for await

View Source Collection.js, line 51

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