Adding a Map above a List in Sencha Touch -


i'm new sencha touch , can't seem find answer i'm trying do. have list view shows time schedule of event. want have block above list shows map of venue location.

here current code:

main.js

ext.define('eventapp.view.home', {  extend: 'ext.list', xtype: 'schedulepanel', id: 'sched',  config: {     title: '<span class="logo"></span>',     iconcls: 'time',      grouped: true,     itemtpl: '<div class="white-circle">{time}</div> <div class="list-title">{title}</div> <div class="list-desc">{description}</div>',     store: 'schedulelist',     onitemdisclosure: true     }  }); 

any regarding massively appreciated. if more code let me know.

you should use vbox layout break ui 2 vertical blocks top half have map , bottom half have list:

ext.define('eventapp.view.home', {     extend: 'ext.panel',     alias: 'widget.schedulepanel',     id: 'sched',     config : {         layout : 'vbox',         items : [{             xtype : 'panel',             flex : 1,             items : [{                 xtype: 'map',                 usecurrentlocation: true             }]         }, {             xtype : 'panel',             flex : 1,             items : [{                 iconcls: 'time',                 grouped: true,                 itemtpl: '<div class="white-circle">{time}</div> <div class="list-title">{title}</div> <div class="list-desc">{description}</div>',                 store: 'schedulelist',                 onitemdisclosure: true             }]         }]     } }); 

ps haven't tested code that's idea.


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -