Constructors
constructor
- new ElementList(element, count?, renderer?): ElementList
Accessors
length
- get length(): number
Returns number
Methods
[iterator]
- [iterator](): Generator<Element, void, unknown>
Returns Generator<Element, void, unknown>
clear
- clear(): void
Returns void
get
- get(index): Generator<Element, void, unknown>
Returns Generator<Element, void, unknown>
move
- move(from, to): void
Returns void
pop
- pop(): Element[]
Returns Element[]
push
- push(...items): number
Returns number
render
- render(item): Node
Returns Node
set
- set(index, value): any
Returns any
shift
- shift(): Element[]
Returns Element[]
splice
- splice(start, deleteCount?, ...items): Element[]
Parameters
- start: number
Optional
deleteCount: numberRest
...items: any[]
Returns Element[]
swap
- swap(from, to): void
Returns void
unshift
- unshift(...items): number
Returns number
An object which represents the
children
of an element as a list. A list has a an array-like mutation API with a few extra methods.Example