Search Type: Posts; User: d5chris
Search: Search took 0.02 seconds.
-
25 Mar 2011 12:12 AM
- Replies
- 3
- Views
- 658
1 - Thats a good question! I've often wondered if thats possible. To my knowledge, no. However if i'm wrong it'd be great...
2 - You can use an itemtap listener to remove the selection as soon as it... -
24 Mar 2011 7:49 PM
Jump to post Thread: How do I add a button to tpl by d5chris
- Replies
- 5
- Views
- 1,618
Here's what's happening:
When you're declaring restHandler inside your ext.setup, it's only being declared inside that scope.
When you're declaring it outside ext.setup, its in the global scope,... -
24 Mar 2011 3:20 PM
- Replies
- 8
- Views
- 1,542
Yes, the way you're doing it is more realistic: xtypes inside a formpanel. So you'd have something like:
form = new Ext.form.FormPanel({
items: [{
xtype: 'fieldset',
title: 'Edit Message... -
24 Mar 2011 2:58 PM
- Replies
- 8
- Views
- 1,542
That should be fine, simply have 5 selects all with store: myStore
-
24 Mar 2011 2:09 PM
- Replies
- 8
- Views
- 1,542
Sure:
Ext.regModel('MyOption', {
fields: [
{name: 'text', type: 'string'},
{name: 'value', type: 'string'}
]
}); -
24 Mar 2011 2:02 PM
- Replies
- 8
- Views
- 1,542
If you're using a Ext.form.Select, it has a 'store' property for just this purpose, so you should be able to do that. Eg set up a model and store to pull from your database, and bind the select to...
-
24 Mar 2011 1:58 PM
Jump to post Thread: JSONP HTTP Basic Authentication by d5chris
- Replies
- 3
- Views
- 1,976
I don't think it's possible, because basic auth uses http headers, and JSONP uses '<script ... />' tags which have no way of specifying headers. You may have to find another approach.
-
24 Mar 2011 1:56 PM
Jump to post Thread: NestedList clarify code example by d5chris
- Replies
- 4
- Views
- 1,328
That bit of code gets called when they tap on a 'leaf' element in the list - eg they've tapped on an item that won't expand into another list.
var ds = subList.getStore(),
r =... -
24 Mar 2011 1:53 PM
- Replies
- 3
- Views
- 658
A List will do the trick nicely and will do your groupings and the a-z on the right hand side.
You'll just need to put the code for your + and - in your itemTpl and you're good to go. -
24 Mar 2011 1:26 PM
Jump to post Thread: Problem with tabbar by d5chris
- Replies
- 3
- Views
- 700
Ok great, and now for the explanation of *why* it worked:
When you had your code like this: "test.views.HomePanel = Ext.extend(Ext.Panel,{...", what it is doing is declaring a class, which is like... -
23 Mar 2011 6:55 PM
Jump to post Thread: How do I add a button to tpl by d5chris
- Replies
- 5
- Views
- 1,618
Yes, i'd use the way you described, eg:
<a href="javascript:MyNamespace.myView.myHandler()">asdasd</a>
However I'm using sencha touch's MVC features, so in my case, i simply used a route eg:... -
23 Mar 2011 4:17 PM
- Replies
- 3
- Views
- 788
That function is used to set which card is visible, and you can use it to specify a sliding animation for the transition too.
-
23 Mar 2011 3:43 PM
- Replies
- 3
- Views
- 788
How about something like this:
containerPanel = new Ext.Panel({
fullscreen: true,
layout: 'card',
items: [
{
html: '<h1>Card 1</h1>'
}, -
23 Mar 2011 3:40 PM
Jump to post Thread: How do I add a button to tpl by d5chris
- Replies
- 5
- Views
- 1,618
I have the same requirement.
Basically the only way i solved it was to put an <a href=... in the template and style it with CSS so it looks similar to a sencha button.
However if you come up with a... -
23 Mar 2011 3:31 PM
Jump to post Thread: Problem with tabbar by d5chris
- Replies
- 3
- Views
- 700
Try this:
test.views.HomePanel = Ext.extend(Ext.Panel,{
fullscreen: true,
cardSwitchAnimation: 'cube',
items: [
{xtype:... -
23 Mar 2011 3:27 PM
- Replies
- 2
- Views
- 694
This is what you want:
'<img src="{[this.findImage(values.user.Name)]}"/>',
the 'values' is the key. -
23 Mar 2011 3:25 PM
- Replies
- 1
- Views
- 765
I just use plain old javascript setTimeout and setInterval...
-
21 Mar 2011 7:10 PM
Jump to post Thread: MVC Naming Convention by d5chris
- Replies
- 2
- Views
- 1,845
I simply follow the naming convention from here:
http://www.sencha.com/learn/Tutorial:A_Sencha_Touch_MVC_application_with_PhoneGap
And if in doubt, just do things as per normal javascript, eg... -
21 Mar 2011 7:08 PM
Jump to post Thread: Sortable throwing exception by d5chris
- Replies
- 2
- Views
- 585
Yeah i've noticed the same, you're not the only one - those tabs don't seem to work. Maybe they only are sortable if you actually are on an iphone - eg not within a desktop browser?
I know that with... -
21 Mar 2011 1:57 PM
- Replies
- 8
- Views
- 10,987
Thanks :)
As for scrolling, you'll want some combo of layout and scroll settings on the list and the panel to get it to work.
My preference is to get the fullscreen panel to have layout:fit and... -
21 Mar 2011 1:41 PM
Jump to post Thread: Conditional Templates in a list by d5chris
- Replies
- 2
- Views
- 1,446
Sure you can do that. Just have a boolean field (or whatever) in your model to determine which template you want to render, and use <tpl "if... statements appropriately.
The docs you want are... -
21 Mar 2011 1:35 PM
Jump to post Thread: MVC explanation, by d5chris
- Replies
- 1
- Views
- 703
A good place to start, if you have the time, is to read the ruby on rails guides on MVC - they explain the concepts quite neatly: http://guides.rubyonrails.org/
But in short:
A controller is... -
21 Mar 2011 1:30 PM
- Replies
- 8
- Views
- 10,987
I think i found it: You haven't added your 'restaurantList' to the 'items' array in your unnamed fullscreen panel.
Try that, eg:
new Ext.Panel({
fullscreen: true,
id: 'content',
... -
20 Mar 2011 5:36 PM
- Replies
- 0
- Views
- 693
Hi,
How do you position a list after a variable-height (due to template) panel ?
I have a template panel like so:
var templatePanel = new Ext.Panel({
tpl: [
'<tpl for="show">',
'<p... -
20 Mar 2011 5:28 PM
Jump to post Thread: Deselect ListItem on Tap? by d5chris
- Replies
- 10
- Views
- 3,439
This is how i do it on my lists:
listeners: {
itemtap: function(dv, ix, item, e) {
// Delay the selection clear
// so they get a nice blue flash for HCI's sake...
Results 1 to 25 of 59
