represents an item in the list. It has a set of visual parameters that are used to set its style:
• icon
• label
• rightText
• rightIcon2
• rightIcon
When the item is clicked, we have some choices as to what will happen. If the item has a
"moveTo" property set then there will be a view transition to the view named in that property.
In addition, an event called "onClick()" is fired when the item is clicked. This event is only
fired if either the ListItem has its "clickable" property set to true or has a view defined as a
move target.
To add ListItems into the list we can use the list container's "addChild()" method.
Above a list, a heading can be inserted. There are two Dojo mobile widgets available for this, one
which styles headings for edge to edge lists (dojox/mobile/EdgeToEdgeCategory) and
another for rounded rectangle style lists (dojox/mobile/RoundedRectCategory).
See also:
• dojox/mobile/EdgeToEdgeList
• dojox/mobile/EdgeToEdgeStoreList
• dojox/mobile/RoundRectList
• dojox/mobile/RoundRectStoreList
• dojox/mobile/ListItem
• dojox/mobile/EdgeToEdgeCategory
• dojox/mobile/RoundRectCategory
The Dojo Mobile widgets
Dojo Mobile provides a rich set of pre-built widgets. The following is summary information on
most of them with notes about each. This should not be considered by any stretch of the
imagination a replacement for the formal documentation. There is both programmer guide and
reference information available which is far more accurate and comprehensive. It should always be
consulted if there is ambiguity.
See also:
• Dojo Mobile Programmers Guide – 1.9
• Dojo API Reference
dojox/mobile/Accordion
This widget acts as a container for other widgets. It displays a set of panes. The label of a pane is
always shown as a header but its body can be open or closed either showing or hiding its content.
Commonly, the contents of the Accordion are instances of the dojox/mobile/Pane,
dojox/mobile/Container or dojox/mobile/ContentPane. Always set the "label"
property of the child container so that the Accordion will have something to display to allow the
user to open and close the entry.
Page 232
Comentários a estes Manuais