Reputation: 4967
Can anybody tell How to display list item border in sencha touch .The below code i have implement default border is not coming for list
{
xtype:'list',
height: '80%',
store:'SearchStore',
itemTpl : '<img src="{country}" width="30" heigh="30"></img><span>{name} </span>',
}
Upvotes: 0
Views: 52
Reputation: 5700
I tried code. A few modifications you can do are:
{
xtype: 'list',
store: 'SearchStore',
itemTpl: [ // It works perfectly
'<div>',
' <img style="width:30px;height:60px;vertical-align:middle" src="{country}">',
' <span style="">{name}</span>',
'</div>'
].join('')
}
Your mistakes: (Though it may not create that problem)
height
was heigh
Extra </img>
tag was there.
Let me know if you face any issue. (And share the screenshot too)
Upvotes: 1