new Chunk(virtualScroller, items [, index] [, options])
Parameters:
| Name | Type | Argument | Default | Description |
|---|---|---|---|---|
virtualScroller |
VirtualScroller | |||
items |
Array.<Item> | |||
index |
Number |
<optional> |
0 | |
options |
Object |
<optional> |
{} |
Members
-
element :HTMLElement
-
Type:
- HTMLElement
-
height :Number
-
Type:
- Number
-
index :Number
-
Type:
- Number
-
isAttached :Boolean
-
Type:
- Boolean
-
isDirty :Boolean
-
Type:
- Boolean
-
isEmpty :Boolean
-
Type:
- Boolean
-
items :Array.<Item>
-
Type:
- Array.<Item>
-
options :Object
-
Type:
- Object
-
width :Number
-
Type:
- Number
Methods
-
appendTo()
-
Append to element.
-
destroy()
-
Destroy the chunk.
-
detach()
-
Detach the chunk.
-
insertAfter()
-
Insert after element.
-
insertBefore()
-
Insert before element.
-
off()
-
Remove event listener.
-
on()
-
Add event listener.
-
pause()
-
Pause the chunk.
-
prependTo()
-
Prepend to element.
-
render()
-
Render the chunk.
-
rerender()
-
Re-render the chunk.
-
resume()
-
Resume the chunk.
-
update()
-
Update the chunk.