Alessandro.Prandini
11 Jul 2010, 2:18 AM
Hi,
I'm new in Sencha Touch but I think it's very impressive!!!
I'm trying to make a new app but I have some difficulties:
1 - When I create new items in a toolbar (top) how can I decide the position of the elements (left,center,right)?
{
xtype: 'searchfield',
hidden: true,
name: 'q',
placeholder: 'Cerca',
listeners: {
keyup: {
fn: function() {
alert('x');
},
scope: this,
buffer: 400
}
}
}2- How can I get the item.value in the function instead of the alert?
cibuus.detailPanel.addListener("beforeactivate", onSelectHandler);
function onSelectHandler(pComponent){
var htmlStr = "<div class='dettagli'><img src='resources/img/" + selectedLocale.img + "' width='57' height='57' /><div class='info'><p class='nome'>" + selectedLocale.nome + "</p><p class='indirizzo'>" + selectedLocale.ind + "</p><p class='indirizzo'>Tel. " + selectedLocale.tel + "</p></div><br /><p class='descrizione'>" + selectedLocale.des + "</p></div>"
this.update(htmlStr);
}3- How can I can add a map in this element?
4- I'm developing under Chrome and Safari but on Safari the input type "searchfield" doesn't show correctly, do you know that?
Thank you very much!
I'm new in Sencha Touch but I think it's very impressive!!!
I'm trying to make a new app but I have some difficulties:
1 - When I create new items in a toolbar (top) how can I decide the position of the elements (left,center,right)?
{
xtype: 'searchfield',
hidden: true,
name: 'q',
placeholder: 'Cerca',
listeners: {
keyup: {
fn: function() {
alert('x');
},
scope: this,
buffer: 400
}
}
}2- How can I get the item.value in the function instead of the alert?
cibuus.detailPanel.addListener("beforeactivate", onSelectHandler);
function onSelectHandler(pComponent){
var htmlStr = "<div class='dettagli'><img src='resources/img/" + selectedLocale.img + "' width='57' height='57' /><div class='info'><p class='nome'>" + selectedLocale.nome + "</p><p class='indirizzo'>" + selectedLocale.ind + "</p><p class='indirizzo'>Tel. " + selectedLocale.tel + "</p></div><br /><p class='descrizione'>" + selectedLocale.des + "</p></div>"
this.update(htmlStr);
}3- How can I can add a map in this element?
4- I'm developing under Chrome and Safari but on Safari the input type "searchfield" doesn't show correctly, do you know that?
Thank you very much!