@tempots/dom
ElementPosition class
Represents the position of an element in a collection.
Signature:
declare class ElementPosition
Constructors
Constructor |
Modifiers |
Description |
---|---|---|
Creates a new instance of |
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
|
number |
The counter of the element starting from 1. | |
|
() => void | ||
|
number |
The index of the element. | |
|
boolean |
Checks if the counter of the element is even. | |
|
boolean |
Checks if the element is the first element in the collection. | |
|
Checks if the element is the last element in the collection. | ||
|
boolean |
Checks if the counter of the element is odd. | |
|
The total number of elements in the collection. |