smushb
22 Sep 2012, 2:33 PM
http://www.youtube.com/watch?v=ss9QxMtNmhA
Is the tutorial I'm trying to follow. I'm totally new to Sencha, and I kind of like it already.
Anyways, I'm having a problem when trying to find the Edit template button that should appear after you have clicked on that settings wheel in the canvas for a panel.
Check out the screenshot attachment, this is how it looks for me, no Edit template button.
I succeed in making a template for my "head" panel, but this was by going to "Code" and then under itemTpl i could double click and write something, I cant do this with this one?
If it helps, here's code:
config: {
layout: {
type: 'card'
},
items: [
{
xtype: 'toolbar',
docked: 'top',
title: 'Sweet'
},
{
xtype: 'list',
id: 'tweetlist',
itemId: 'TweetList',
itemTpl: [
'<div style="float: left; width: 60px;">',
' <img src="{profile_image_url}" />',
'</div>',
'<div style="margin-left: 62px;">',
' {text} <br />',
' {created_at:date(\'Y/m/d H:i\')}',
'</div>'
],
store: 'Tweets'
},
{
xtype: 'panel',
itemId: 'tweetPreview'
}
],
listeners: [
{
fn: 'onTweetlistItemTap',
event: 'itemtap',
delegate: '#tweetlist'
}
]
},
Is the tutorial I'm trying to follow. I'm totally new to Sencha, and I kind of like it already.
Anyways, I'm having a problem when trying to find the Edit template button that should appear after you have clicked on that settings wheel in the canvas for a panel.
Check out the screenshot attachment, this is how it looks for me, no Edit template button.
I succeed in making a template for my "head" panel, but this was by going to "Code" and then under itemTpl i could double click and write something, I cant do this with this one?
If it helps, here's code:
config: {
layout: {
type: 'card'
},
items: [
{
xtype: 'toolbar',
docked: 'top',
title: 'Sweet'
},
{
xtype: 'list',
id: 'tweetlist',
itemId: 'TweetList',
itemTpl: [
'<div style="float: left; width: 60px;">',
' <img src="{profile_image_url}" />',
'</div>',
'<div style="margin-left: 62px;">',
' {text} <br />',
' {created_at:date(\'Y/m/d H:i\')}',
'</div>'
],
store: 'Tweets'
},
{
xtype: 'panel',
itemId: 'tweetPreview'
}
],
listeners: [
{
fn: 'onTweetlistItemTap',
event: 'itemtap',
delegate: '#tweetlist'
}
]
},