The DojoMobileList widget provides a container for the
list items and categories.
Note: To import the selected sample, you must install
and use the local help.
Properties
- style
- You can set the style property in the widget variable declaration
and onConstruction function. However, changing the style takes no
effect if the widget is initialized. The valid values are DojoMobileLib.LIST_STYLE_EDGE_TO_EDGE
and DojoMobileLib.LIST_STYLE_ROUNDED_RECTANGLE (default value).
- children
- An array of child widgets. The child widgets can only be of type
DojoMobileListItem and DojoMobileListCategory, otherwise the widgets
are ignored.
- isLongList
- Whether the list will be handled as long list to load/unload while
scrolling.
- pageSize
- The number of list items that is loaded at a time. This property
is only effected when isLongList is true.
- maxPages
- The number of pages above which previous pages will be unloaded.
This property is only effected when isLongList is true.
- unloadPages
- The number of pages that will be unloaded when maxPages is reached.
This property is only effected when isLongList is true.
- isFilteredList
- Whether the list can be filtered. If true, a filter box will show
at the top of the list.
- placeHolder
- Prompt text to display inside the search box if it is empty. This
property is only effected when isFilterList is true.
- filterBoxVisible
- Whether the search box is visible. This property is only effected
when isLongList is true.
Events
- onClick
- Specifies an event that occurs when the icon is clicked.