Constructor
# new Collection(txCollection, wrapItem)
Wrapper für TXTextControl.Collection
Parameters:
| Name | Type | Description |
|---|---|---|
txCollection |
any
|
|
wrapItem |
function
|
Classes
Methods
# protected _wrapItem()
# async elementAt(index) → {Promise.<T>}
Returns the element at a specified index in the collection
Parameters:
| Name | Type | Description |
|---|---|---|
index |
number
|
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
Promise.<void>
# async generator reverse() → {AsyncGenerator.<Awaited.<T>, void, unknown>}
iterates the collection in reverse
use in for await
AsyncGenerator.<Awaited.<T>, void, unknown>