[Control] masterDetail

Part of: mobl::ui::generic

Arguments:

  • items : Collection
  • masterItem : Control control for single item in list
  • detail : Control control for detail view

Renders an master/detail view and presenting it with both list and detail if the resolution on device is large enough.

Example:

entity Address {
    fullName : String
    code : Num
}
control detailCtrl(address : Address) {
   block {
   "Showing details for "
   label(address.fullName)
       " with postal code "
       label(address.code)  
   }
}
control itemCtrl(address : Address) {
    label(address.fullName)
}
masterDetail(Address.all(), itemCtrl, detailCtrl) {
  backButton()
}
mobl/ui/generic/masterdetail.txt · Last modified: 2013/10/01 02:29 (external edit)