Class enchant.widget.LazyListView
- Defined in: widget.enchant.js
- Extends enchant.widget.ListView
Constructor Attributes | Constructor Name and Description |
---|---|
LazyListView is a class which enables a ListView to load the content of it's
child ListItems lazily by using enchant.widget.LazyListItem (s).
|
- Fields borrowed from class enchant.Entity:
- backgroundColor, buttonMode, buttonPressed, compositeOperation, debugColor, opacity, originX, originY, rotation, scaleX, scaleY, touchEnabled, visible
- Fields borrowed from class enchant.Node:
- age, parentNode, scene, x, y
Method Summary
- Methods borrowed from class enchant.Entity:
- disableCollection
- enableCollection
- intersect
- rotate
- scale
- within
- Methods borrowed from class enchant.Node:
- moveBy
- moveTo
- Methods borrowed from class enchant.EventTarget:
- addEventListener
- clearEventListener
- dispatchEvent
- on
- removeEventListener
Class Detail
enchant.widget.LazyListView()
LazyListView is a class which enables a ListView to load the content of it's
child ListItems lazily by using enchant.widget.LazyListItem (s).
It is also possible to use regular ListItems which will behave
like if they where added to a ListView (therefore, no lazy initialization).
Furthermore, this LazyListView will dispatch an enchant.Event.CONTENT_REQUESTED event
when the ListView feels like the available content is not sufficient.
The enchant.Event.CONTENT_REQUESTED can be used to add new items to the LazyListView.
See the LazyListView example of enchant.js (examples/plugins/widget/LazyListView/).