Servis-Rhino 4211B Guia do Utilizador Página 229

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 298
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 228
transitionDir – A value of 1 means transition forward and a value of -1 means
transition backwards
transition – The type of transition animation … for example "slide".
context – The value that a callback function will receive as "this"
method – A function that will be called when the transition completes
A set of other widgets in the Dojo mobile package have knowledge of views. They provide
capabilities for view transitions. Some of these widgets include:
dojox/mobile/Heading
dojox/mobile/IconItem
dojox/mobile/IconMenuItem
dojox/mobile/ListItem
dojox/mobile/TabBarButton
Common among these widgets are the following view related properties:
moveTo – The name of a view which will be shown upon interaction with the widget.
It is very common to add a header to the top of the view. This can be achieved using the
dojox/mobile/Heading widget.
See also:
dojox/mobile/View
dojox/mobile/ScrollableView
dojox/mobile/TreeView
dojox/mobile/SwapView
Listening to Transition Events – 1.9
dojox/mobile/View
The dojox/mobile/View is the basic View container. It can hold other widgets or HTML.
Some of its key properties include:
id – The identity of the view.
selected – True if this is the view to be shown at startup.
If more content is added to the view than will fit in the window area, the View will scroll natively
based on browser ability.
In the following screen shot we see a single View which contains a Header and some list content.
Notice that since the list content is taller than the browsing area, a scrollbar has been added. This
scrollbar has been added by the browser.
Page 229
Vista de página 228
1 2 ... 224 225 226 227 228 229 230 231 232 233 234 ... 297 298

Comentários a estes Manuais

Sem comentários