[Control] whenLoaded
Part of: mobl::ui::generic
Arguments:
value : Object
the object for which to wait for it to have another value thannull
style : Style = loadingStyle
style to use for the loading balloonloadingMessage : String = "Loading..."
message to display while loading.
whenLoaded
is used in combination with the async(..., ...)
construct, to only show content when a certain variable has a value other than null
.
Example:
var trends = async(Twitter.trends())
whenLoaded(trends) {
group {
list(t in trends) {
item { label(t.name) }
}
}
}
Example 2:
whenLoaded(trends, loadingMessage="Laden...") {
...
}
mobl/ui/generic/whenloaded.txt · Last modified: 2013/10/01 02:29 (external edit)