PDA

View Full Version : [CLOSED] "Edit template button" does not show with a Panel? Cant edit template code?



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'
}
]
},

smushb
25 Sep 2012, 4:49 PM
ANYONE PLEASE ????

Only similiar post is http://www.sencha.com/forum/showthread.php?220377-Test-application-Cars-flyout-config-edit-template


A (http://www.sencha.com/forum/showthread.php?220377-Test-application-Cars-flyout-config-edit-template)nd a solution is if there was any item inside the panel it wouldnt show, but i have no items inside it ?!

aconran
25 Sep 2012, 8:03 PM
Search for itemTpl in the configuration grid and click the + to the right of it.

This will give you a full blown template editor once you select the template.