我是煎茶触摸的新手。在这里我遇到了一个问题,我怎样才能显示每行只包含 3 或 4 项?
请看下面我的屏幕截图
我需要显示如下示例的列表
这是我的视图js文件
Ext.define('bluebutton.view.BlueButton.CouponList', {
extend: 'Ext.dataview.DataView',
xtype: 'couponlist',
requires: [
'Ext.field.Select',
'Ext.field.Search',
'bluebutton.view.BlueButton.MemberDetail',
'Ext.plugin.ListPaging',
'Ext.plugin.PullRefresh'
],
config: {
styleHtmlContent: true,
scrollable: 'vertical',
store : { xclass : 'bluebutton.store.BlueButton.MemberList'},
grouped: true,
indexBar: true,
autoLoad: false,
disclosure: true,
cls:'customHeader',
id :'memberlist',
items: [
{
}
],
inline: { wrap: false },
emptyText: '<p class="no-search-results">No member record found matching that search</p>',
itemTpl: Ext.create(
'Ext.XTemplate',
// '<div class="image" style="background-image:url(http://resources.shopstyle.com/static/mobile/image2-iPad/{urlId}.png)"></div>',
// '<div class="name">{memberId}</div>'
'<div class="demo-weather">',
'<tpl for=".">',
'<div class="day">',
'<div class="date">{memberId}</div>',
'<tpl for="weatherIconUrl">',
'<img src="{value}">',
'</tpl>',
'<span class="temp">{memberId}°<span class="temp_low">{memberId}°</span></span>',
'</div>',
'</tpl>',
'</div>'
),
},
});
My sass file
.demo-weather {
text-align: center;
}
.day {
display: inline-block;
background-color: #f9f9f9;
color: rgba(0, 0, 0, .6);
text-shadow: #fff 0 1px 0;
width: 8em;
text-align: center;
@include border-radius(15px);
@include box-shadow(inset 0 0 4px #888);
box-shadow: inset 0 0 4px #888;
padding: 1em;
margin: .5em;
.x-android & {
@include box-shadow(none);
}
}
.date {
font-size: .8em;
}
.icon img {
@include border-radius(10px);
margin: .6em;
width: 3.5em;
}
.temp {
margin-top: .2em;
display: block;
font-size: 2.2em;
line-height: .5em;
}
.temp_low {
display: inline;
font-size: .5em;
color: rgba(30, 30, 30, .5);
}
Please guild me solution. Thanks in advance